Closed Raychanan closed 2 years ago
Hi @Raychanan,
It appears that this is caused by a change to scikit-learn's SelectPercentile class in the 1.x scikit-learn release. I've committed an updated version of the notebook to deal with this change.
The change is small, so if you don't want to re-upload the notebook to colab from scratch, you can simply change one line in your existing colab notebook. Find the following line:
base_clf = Pipeline([("scaler", StandardScaler()), ("featselect", SelectPercentile(f_classif, 10)), ("logreg", LogisticRegression(solver='liblinear'))])
And change it to:
base_clf = Pipeline([("scaler", StandardScaler()), ("featselect", SelectPercentile(score_func=f_classif, percentile=10)), ("logreg", LogisticRegression(solver='liblinear'))])
That should resolve the error!
This helps a lot! Thanks so much!
Hi, many thanks for the development of the great package!
I'm trying to run this sample notebook Predicting Conversations Gone Awry With Convokit on Google Colab here.
I did no modifications except for the first chunk I added
However, an error occurred in the second cell from the bottom:
TypeError: __init__() takes from 1 to 2 positional arguments but 3 were given
. Would it be possible for you to point out how to correct the error? Many thanks!