- 博客(4)
- 收藏
- 关注
原创 解决FutureWarning: using a dict on a Series for aggregation is deprecated and will be removed方案
报错信息:FutureWarning: using a dict on a Series for aggregation is deprecated and will be removed in a future version. Use named aggregation instead. >>> grouper.agg(name_1=func_1, name_2=func_...
2019-09-19 20:43:31 1708
原创 解决jupyter notebook中出现"Figure size 640x480 with 1 Axes"不显示图片的方案
问题代码:(可忽略代码)import numpy as npfrom sklearn.feature_selection import SelectKBest, f_classifimport matplotlib.pyplot as pltpredictors = ["Pclass", "Sex", "Age", "SibSp", "Parch", "Fare", "Embarked",...
2019-09-16 14:15:17 22076 7
原创 解决FutureWarning: Default solver will be changed to 'lbfgs' in 0.22问题
代码:from sklearn import model_selectionfrom sklearn.linear_model import LogisticRegression# Initialize our algorithmalg = LogisticRegression(random_state=1)# Change to alg = LogisticRegression(ran...
2019-09-16 14:03:14 1117
原创 解决TypeError: __init__() got an unexpected keyword argument 'n_folds' /'n_splits'问题
关于解决“泰坦尼克船员获救数据分析”的KFold()报错问题。报错信息:TypeError: __init__() got an unexpected keyword argument 'n_folds'报错代码主体如下:#Import the linear regression classfrom sklearn.linear_model import LinearRegression...
2019-09-15 22:48:34 17479 7
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人