feature(workshop): add workshop5 decision tree tuning

This commit is contained in:
2026-06-04 13:54:33 +02:00
parent b53476cf3b
commit cd5581ada4
9 changed files with 10311 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
{ pkgs, ... }:
{
# Native libs that the pip-wheel-installed numpy/scipy/matplotlib stack
# dlopen()s at runtime. zlib war schon in W3/W4 nötig (libz.so.1),
# stdenv.cc.cc.lib liefert libstdc++ für die scipy/sklearn-Wheels.
packages = [
pkgs.zlib
pkgs.stdenv.cc.cc.lib
];
languages.python = {
enable = true;
venv.enable = true;
venv.requirements = ''
pandas
numpy
scikit-learn
matplotlib
seaborn
'';
};
# Loader-Pfad für die obigen nativen Libs. Wenn beim Import trotzdem ein
# "ImportError: libXYZ.so.N" auftaucht: das bereitstellende pkgs.<paket>
# zu packages UND hier ergänzen — gleiches Muster wie der W3-Fix.
env.LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [
pkgs.zlib
pkgs.stdenv.cc.cc.lib
];
}