Fork me on GitHub 0
摘要: 1、train_test_split 将数组或矩阵拆分为随机训练和测试子集 用法: sklearn.model_selection.train_test_split(*arrays, **options) X_train, X_test, y_train, y_test = train_test_s 阅读全文
posted @ 2020-03-09 16:07 amazingcode 阅读(976) 评论(0) 推荐(0) 编辑
摘要: https://seaborn.pydata.org/generated/seaborn.heatmap.html 阅读全文
posted @ 2020-03-07 18:44 amazingcode 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 相关系数是用以反映变量之间相关关系密切程度的统计指标。 其中,δx,δyδx,δy表示X,Y的方差 r的值在[-1,1]之间 用法: numpy.corrcoef(x, y=None, rowvar=True, bias=<no value>, ddof=<no value>)[source] 参数 阅读全文
posted @ 2020-03-07 18:17 amazingcode 阅读(741) 评论(0) 推荐(0) 编辑
摘要: 偏度(skewness),是统计数据分布偏斜方向和程度的度量,是统计数据分布非对称程度的数字特征。 定义上偏度是样本的三阶标准化矩: 方法: DataFrame.skew(axis=None, skipna=None, level=None, numeric_only=None, **kwargs) 阅读全文
posted @ 2020-03-07 16:32 amazingcode 阅读(1323) 评论(0) 推荐(0) 编辑
摘要: 不知道怎么搞得,我上传的过程中遇到很多问题,在此记录一下。 一开始在cmd终端ping github.com时老是超时,之后在hosts文件里添加源加速 ping的时候速度就快了。 安装好git 一、在要上传的文件处右键git bash $ git init 建立.git目录,存放repositor 阅读全文
posted @ 2020-02-25 12:49 amazingcode 阅读(135) 评论(0) 推荐(0) 编辑