Bright136 / Embedding-a-Machine-Learning-Model-into-a-Web-Application

3 stars 0 forks source link

Numerical imputation #2

Open eaedk opened 1 year ago

eaedk commented 1 year ago

In your article you wrote

# impute numeical columns
num = SimpleImputer(strategy="most_frequent")

but the right thing to do is

# impute numeical columns
num = SimpleImputer(strategy="mean")
# or 
num = SimpleImputer(strategy="median")
Bright136 commented 1 year ago

Thanks factor that and rerun the notebook. Thank you for the feedback