sklearn实战-乳腺癌细胞数据挖掘(博客主亲自录制视频教程,QQ:231469242)
https://study.163.com/course/introduction.htm?courseId=1005269003&utm_campaign=commission&utm_source=cp-400000000398149&utm_medium=share
累积分布函数(cumulative distribution function)定义:对连续函数,所有小于等于a的值,其出现概率的和。F(a)=P(x<=a)
python statsmodels包支持计算和绘制累积分布函数
import numpy as np import statsmodels.api as sm # recommended import according to the docs import matplotlib.pyplot as plt sample = np.random.uniform(0, 1, 50) ecdf = sm.distributions.ECDF(sample) #等差数列,用于绘制X轴数据 x = np.linspace(min(sample), max(sample)) # x轴数据上值对应的累计密度概率 y = ecdf(x) #绘制阶梯图 plt.step(x, y) plt.show()
python风控评分卡建模和风控常识(博客主亲自录制视频教程)
原文地址:https://www.cnblogs.com/webRobot/p/11405526.html
时间: 2024-10-15 11:45:59