TreeinRandomForest / kubeflow_usecases

10 stars 9 forks source link

code errors in in ch3.2 #3

Open larrycai opened 2 years ago

larrycai commented 2 years ago

Chapter 3 Credit Card Fraud Detection-pandas + sklearn + pytorch.ipynb , cell 10

 from sklearn.externals import joblib
ImportError: cannot import name 'joblib' 

It seems now it recommends to import directly, at least work for me

# Requirement already satisfied: joblib>=0.11 in /opt/conda/lib/python3.9/site-packages (from scikit-learn) (1.1.0)
import joblib
larrycai commented 2 years ago

Further

NameError: name 'features_train_pd' is not defined

and

TypeError: drop() takes from 1 to 8 positional arguments but 25 were given
TreeinRandomForest commented 2 years ago

thanks @larrycai! we pushed a few changes to the notebook in 3.2 that fixes the bugs