Shingrace的个人博客分享 http://blog.sciencenet.cn/u/Shingrace

博文

按标题搜索
名字分组,尽量不重
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|1761 次阅读|没有评论
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|3117 次阅读|没有评论
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|3365 次阅读|没有评论
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|10360 次阅读|没有评论
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|4565 次阅读|没有评论

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

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

GMT+8, 2024-5-1 13:38

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部