mlcourse.ai icon indicating copy to clipboard operation
mlcourse.ai copied to clipboard

AttributeError: 'NoneType' object has no attribute 'split' using anaconda

Open Selithrarion opened this issue 2 years ago • 5 comments

needed to upgrade threadpoolctl to 3.2 pip install threadpoolctl --upgrade to fix the error AttributeError: 'NoneType' object has no attribute 'split' in topic 3 on the line knn_pred = knn.predict(X_holdout_scaled) also it was in some previous topic but dont remember where

used anaconda so im suggesting to add a hint or smth to help other people if they face it

Selithrarion avatar Sep 10 '23 15:09 Selithrarion

https://mlcourse.ai/book/topic03/assignment03_decision_trees_solution.html line

plot_tree(
    dt, feature_names=df_train.columns, filled=True, class_names=["Won't go", "Will go"]
);

did throw an error cuz i provided an Index instead of a list so i was able to fix using df_train.columns.tolist()

Selithrarion avatar Sep 11 '23 08:09 Selithrarion

is it should be like this? data_test[c].fillna(data_train[c].mode()[0], inplace=True)

# fill missing data

for c in categorical_columns:
    data_train[c].fillna(data_train[c].mode()[0], inplace=True)
    data_test[c].fillna(data_train[c].mode()[0], inplace=True)

for c in numerical_columns:
    data_train[c].fillna(data_train[c].median(), inplace=True)
    data_test[c].fillna(data_train[c].median(), inplace=True)

Selithrarion avatar Sep 11 '23 10:09 Selithrarion

https://mlcourse.ai/book/topic06/topic6_feature_engineering_feature_selection.html#statistical-approaches - Statistical approaches section, VarianceThreshold(0.7).fit_transform(x_data_generated).shape and etc doesnt change the data shape

Selithrarion avatar Sep 14 '23 16:09 Selithrarion

https://mlcourse.ai/book/topic08/assignment08_implement_sgd_regressor.html Linear regression and Stochastic Gradient Descent section image

Selithrarion avatar Sep 16 '23 09:09 Selithrarion

https://mlcourse.ai/book/topic09/assignment09_time_series.html downloads an html file every time i refresh the page o_o

Selithrarion avatar Sep 18 '23 16:09 Selithrarion