科学网

 找回密码
  注册
python-拟合(一元线性)
夏江江 2016-12-16 13:53
def linear_model_main(xx,yy): regr = linear_model.LinearRegression() regr.fit(xx,yy) predictions = {} predictions = regr.intercept_ #截距 predictions &nbs ...
个人分类: python|3386 次阅读|没有评论
python-符号运算(求导等)
夏江江 2016-12-15 17:29
cmd 命令下 pip install sympy #求导 from sympy import * y = Symbol('x') diff(y**2,y) #2*x diff(f, *symbols, **kwargs) Differentiate f with respect to symbols. This is just a wrapper to unify .diff() and the Derivative class; it ...
个人分类: python|10383 次阅读|没有评论
python 统计方法-分布检验
夏江江 2016-12-14 22:01
import scipy scipy.stats.ttest_rel() Examples for the use are scores of the same set of student in different exams, or repeated sampling from the same units. scipy.stats.kstest() This performs a test of the distribution G(x) of an observed & ...
个人分类: python|4582 次阅读|没有评论

本页有 1 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-16 14:51

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部