Skip to content

Commit bebe939

Browse files
authored
Merge pull request #1371 from Kaggle/fix-learn-tools-sklearn
Fix learntools by pinning sklearn
2 parents 96992b9 + a72afb0 commit bebe939

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

Dockerfile.tmpl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ RUN JAXVER=$(pip freeze | grep -e "^jax==") && \
190190
pip install --upgrade \
191191
"matplotlib<3.8.0" \
192192
seaborn \
193-
python-dateutil dask igraph \
193+
python-dateutil dask dask-expr igraph \
194194
pyyaml joblib husl geopy mne pyshp \
195195
pandas \
196196
polars \
@@ -269,8 +269,6 @@ RUN pip install opencv-contrib-python opencv-python && \
269269
/tmp/clean-layer.sh
270270

271271
RUN pip install scipy \
272-
# b/302136621 Fix eli5 import for learntools
273-
"scikit-learn<1.3" \
274272
# Scikit-learn accelerated library for x86
275273
scikit-learn-intelex>=2023.0.1 \
276274
# HDF5 support
@@ -318,7 +316,8 @@ RUN pip install mpld3 \
318316
path.py \
319317
Geohash && \
320318
pip install deap \
321-
tpot \
319+
# b/302136621 Fix eli5 import for learntools, newer version require scikit-learn > 1.3
320+
"tpot==0.12.1" \
322321
scikit-optimize \
323322
haversine \
324323
toolz cytoolz \
@@ -537,19 +536,21 @@ RUN pip install flashtext \
537536
s3fs \
538537
featuretools \
539538
#-e git+https://github.com/SohierDane/BigQuery_Helper#egg=bq_helper \
540-
hpsklearn \
541539
git+https://github.com/Kaggle/learntools \
542-
kmapper \
543-
shap \
544540
ray \
545541
gym \
546542
pyarabic \
547543
pandasql \
544+
# b/302136621 Fix eli5 import for learntools
545+
scikit-learn==1.2.2 \
546+
hpsklearn \
547+
kmapper \
548+
shap \
549+
cesium \
550+
rgf_python \
548551
jieba \
549552
# ggplot is broken and main repo does not merge and release https://github.com/yhat/ggpy/pull/668
550553
https://github.com/hbasria/ggpy/archive/0.11.5.zip \
551-
cesium \
552-
rgf_python \
553554
tsfresh \
554555
pykalman \
555556
optuna \

0 commit comments

Comments
 (0)