08 2018 档案
摘要:啥是逻辑斯蒂回归呢 先别管那没多,它就一种分类方法: 我们先假设某个某个事件 E 发生的概率为p,那么该事件不发生的概率为1-p; 接下来,我们说下几率:一个事件发生的概率与它不发生的概率之比就是几率:即 P/1-P 那么我们知道如果事件E发生的概率越大,几率 P/1-P 越趋近于正无穷,否则趋近于
阅读全文
摘要:matplotlib库:一个优秀的数据可视化第三方库 文档:https://matplotlib.org/users/index.html 样例:https://matplotlib.org/gallery/index.html 一、matplotlib库简介 matplotlib由各种可视化类构成
阅读全文
摘要:numpy库 英文官方文档:https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html 一、numpy库中的数组对象:N维数组类型:ndarray 1) ndarray的作用: a) 数组对象性可以去掉元素间运算所需的循环,使一维向量
阅读全文
摘要:http://pandas.pydata.org/pandas-docs/stable/api.html 目录 一、pandas简介: Pandas库:python的第三方库,提供高性能数据类型和分析工具。 简单说就是,便于操作的数据类型,很多的分析函数和分析工具; Pandas的引用: impor
阅读全文
摘要:理解母函数:https://blog.csdn.net/howardemily/article/details/75041523 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2152 Fruit Time Limit: 1000/1000 MS (Jav
阅读全文
摘要:题目:http://acm.hdu.edu.cn/showproblem.php?pid=5616 Jam's balance Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total
阅读全文
摘要:题目:http://poj.org/problem?id=1837 Balance Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 16411 Accepted: 10310 Description Gigel has a str
阅读全文
摘要:一、什么是最长公共子序列 例:设有两个字符串str1="nyiihaoo" , str2="niyeyiyang",那么"nyiihaoo"中的子序列:"ny" 长度是2; "niyeyiyang"中的子序列:"ny"长度也为2,这是str1与str2的一个公共子序列,长度为2。那么这两个字符串最长
阅读全文
摘要:用正则表达式匹配出来的; # 获取表单VIEWSTATE,EVENTVALIDATION的值 参数r是html def get_VIEWSTATE(r): pattern1=r'VIEWSTATE\".*value=\".*\"' match=re.search(pattern1,r).group(
阅读全文
摘要:http://www.pythonexcel.com/这个网站emm,挺详细的 嗯,主要翻译一下:http://www.pythonexcel.com/python-excel-writer.php 向Excel 写入数据的库 蛮多的 ,这里主要说 下 openpyxl 库: 一、写入数据 emmm
阅读全文
摘要:pwd:Print working directory 显示当前工作路径。 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mkdir:Make d
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3308
阅读全文
摘要:线段树 区间合并模板 --区间更新 题目:http://poj.org/problem?id=3667
阅读全文
摘要:void multi(int a[],int b[],int c[],int an,int bn,int &cn){ //a[]被乘数 b[]乘数 c[] 保存结果 //an表示a数组中所存大数的位数,bn表示b数组中所存大数的位数,cn存c数组的位数 for(int i=maxn-1;i>=maxn-bn;i--){ //乘数 int weight=...
阅读全文
摘要:#include #include #define maxn 1000001 int c[maxn]; int a[maxn]; int lowbit(int x){ return x&(-x); } int ini(){ //初始化 for(int i=1;i=i-lowbit(i);k++){ c[i]+=a[k]; } } } void update(int p...
阅读全文

浙公网安备 33010602011771号