longgb246的博客


  • 首页

  • 分类

  • 关于

  • 归档

  • 标签

  • 公益404

  • 搜索
close
longgb246的博客

Seaborn-03-数据分布图

发表于 2017-02-15 | 分类于 Python |

基本

1
2
3
4
5
6
7
#-*- coding:utf-8 -*-
from __future__ import division
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from scipy import stats, integrate
import seaborn as sns

1、快速查看分布

distplot

1
2
3
x = np.random.randint(0,10,100)
sns.distplot(x, color="b", bins=10, rug=True)
sns.distplot(x, hist=False)
阅读全文 »
longgb246的博客

Seaborn-02-颜色板控制

发表于 2017-02-15 | 分类于 Python |

基本

1
2
3
4
5
6
#-*- coding:utf-8 -*-
from __future__ import division
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns

1、定性调色板 Qualitative

默认的定性调色板:deep, muted, pastel, bright, dark, colorblind.

1
2
current_palette = sns.color_palette()
sns.palplot(current_palette)

阅读全文 »
longgb246的博客

Seaborn-01-图控制

发表于 2017-02-15 | 分类于 Python |

基本

1
2
3
4
#-*- coding:utf-8 -*-
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt

1、引入 seaborn 风格

1
2
3
4
5
def sinplot(flip=1):
x = np.linspace(0, 14, 100)
for i in range(1, 7):
plt.plot(x, np.sin(x + i * .5) * (7 - i) * flip)
sinplot()
阅读全文 »
longgb246的博客

Pandas-office-10分钟开始

发表于 2017-02-15 | 分类于 Python |

基本

1
2
3
4
# -*- coding:utf-8 -*-
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

1、创建数据框

1
2
3
4
dates = pd.date_range('20130101', periods=6)
df = pd.DataFrame(np.random.randn(6, 4), index=dates, columns=list('ABCD'))
left = pd.DataFrame({'key': ['foo', 'foo'], 'lval': [1, 2]})
right = pd.DataFrame({'key': ['foo', 'foo'], 'rval': [4, 5]})
阅读全文 »
longgb246的博客

聚类分析(2):其他问题与算法

发表于 2017-02-15 | 分类于 机器学习 |

一、数据、簇、聚类算法

(1)数据特性

可能影响聚类分析的因素:
高维性、规模、稀疏性、噪声和离群点、尺度

二、基于原型的聚类

(1)模糊聚类

1、模糊集合

模糊集合论允许对象以 0 和 1 之间的某个隶属度隶属于一个集合。

阅读全文 »
1…456…11
longgb246

longgb246

这个人太懒了,什么都没有留下...

52 日志
9 分类
24 标签
RSS
GitHub 微博 简书 CSDN 经管之家
我的好友
  • 大抹茶君
© 2017 longgb246
由 Hexo 强力驱动
主题 - NexT.Pisces