![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据科学
Legolas~
这个作者很懒,什么都没留下…
展开
-
【机器学习随笔】数学符号
infinfinf(全称:infimum):集合下界supsupsup(全称:supremum):集合上界原创 2021-05-13 12:06:49 · 128 阅读 · 0 评论 -
【数据分析】seaborn.heatmap绘制热力图
import pandas as pdimport seabornimport matplotlib.pyplot as pltdf = pd.read_csv("flights.csv")df = df.pivot(index="month", columns="year", values="passengers")seaborn.heatmap(df, annot=True, fmt='d', annot_kws={'size': 12, 'weight': 'bold'}, cmap='B原创 2020-07-17 11:50:23 · 1003 阅读 · 0 评论 -
【数学建模】灰度预测之关联度求解
原始数据表格如下所示,其中t1、t2、t3、t4表示四个不同的时刻,参考序列为Industry,分别计算后三者与Industry的关联度,代码最终返回的是关联度经过排序后的department的相应取值,排序采用逆序排序import numpy as npimport pandas as pdimport warningswarnings.filterwarnings("ignore")df = pd.read_csv("department_data.csv")m, n = df.sh原创 2020-07-05 18:30:56 · 6273 阅读 · 0 评论 -
【数据科学】四分位准则及绘制箱线图
绘制箱线图一般有两种方法:1.DataFrame方法:import pandas as pdimport matplotlib.pyplot as pltdf = pd.read_csv("26_finaldata_lowfreq_magn.csv")feature_names = ["average"]feature_data = {}for f in feature_names: feature_data[f] = df[f]data = pd.DataFrame(fea原创 2020-07-01 12:27:22 · 3452 阅读 · 0 评论