科学网

 找回密码
  注册
名字分组,尽量不重
夏江江 2017-1-2 22:39
名字分组,尽量不重 names_group_1.py names_group_N.py names.xlsx names_group_1.xls names_group_2.xls names_group_3.xls
个人分类: python|1773 次阅读|没有评论
python-展开任意深度的list嵌套
夏江江 2016-12-16 14:36
展开任意深度的嵌套 from collections import Iterable flat = lambda t : if isinstance ( t , Iterable ) else In : flat ( ], 6 , 7 ]]) Out :
个人分类: python|3139 次阅读|没有评论
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|3384 次阅读|没有评论
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|10379 次阅读|没有评论
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|4579 次阅读|没有评论

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

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

GMT+8, 2024-5-13 02:47

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部