08 2018 档案

摘要:啥是逻辑斯蒂回归呢 先别管那没多,它就一种分类方法: 我们先假设某个某个事件 E 发生的概率为p,那么该事件不发生的概率为1-p; 接下来,我们说下几率:一个事件发生的概率与它不发生的概率之比就是几率:即 P/1-P 那么我们知道如果事件E发生的概率越大,几率 P/1-P 越趋近于正无穷,否则趋近于 阅读全文
posted @ 2018-08-24 20:26 bear_ge 阅读(261) 评论(0) 推荐(0)
摘要:matplotlib库:一个优秀的数据可视化第三方库 文档:https://matplotlib.org/users/index.html 样例:https://matplotlib.org/gallery/index.html 一、matplotlib库简介 matplotlib由各种可视化类构成 阅读全文
posted @ 2018-08-16 13:58 bear_ge 阅读(2923) 评论(0) 推荐(0)
摘要:numpy库 英文官方文档:https://docs.scipy.org/doc/numpy/reference/arrays.ndarray.html 一、numpy库中的数组对象:N维数组类型:ndarray 1) ndarray的作用: a) 数组对象性可以去掉元素间运算所需的循环,使一维向量 阅读全文
posted @ 2018-08-15 16:38 bear_ge 阅读(3692) 评论(0) 推荐(0)
摘要:http://pandas.pydata.org/pandas-docs/stable/api.html 目录 一、pandas简介: Pandas库:python的第三方库,提供高性能数据类型和分析工具。 简单说就是,便于操作的数据类型,很多的分析函数和分析工具; Pandas的引用: impor 阅读全文
posted @ 2018-08-15 15:32 bear_ge 阅读(1736) 评论(0) 推荐(0)
摘要:理解母函数:https://blog.csdn.net/howardemily/article/details/75041523 题目:http://acm.hdu.edu.cn/showproblem.php?pid=2152 Fruit Time Limit: 1000/1000 MS (Jav 阅读全文
posted @ 2018-08-14 11:25 bear_ge 阅读(167) 评论(0) 推荐(0)
摘要:题目: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 阅读全文
posted @ 2018-08-14 11:18 bear_ge 阅读(163) 评论(0) 推荐(0)
摘要:题目:http://poj.org/problem?id=1837 Balance Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 16411 Accepted: 10310 Description Gigel has a str 阅读全文
posted @ 2018-08-13 09:51 bear_ge 阅读(238) 评论(0) 推荐(0)
摘要:一、什么是最长公共子序列 例:设有两个字符串str1="nyiihaoo" , str2="niyeyiyang",那么"nyiihaoo"中的子序列:"ny" 长度是2; "niyeyiyang"中的子序列:"ny"长度也为2,这是str1与str2的一个公共子序列,长度为2。那么这两个字符串最长 阅读全文
posted @ 2018-08-13 08:00 bear_ge 阅读(470) 评论(0) 推荐(0)
摘要:用正则表达式匹配出来的; # 获取表单VIEWSTATE,EVENTVALIDATION的值 参数r是html def get_VIEWSTATE(r): pattern1=r'VIEWSTATE\".*value=\".*\"' match=re.search(pattern1,r).group( 阅读全文
posted @ 2018-08-10 15:28 bear_ge 阅读(2775) 评论(0) 推荐(0)
摘要:http://www.pythonexcel.com/这个网站emm,挺详细的 嗯,主要翻译一下:http://www.pythonexcel.com/python-excel-writer.php 向Excel 写入数据的库 蛮多的 ,这里主要说 下 openpyxl 库: 一、写入数据 emmm 阅读全文
posted @ 2018-08-10 15:15 bear_ge 阅读(70572) 评论(0) 推荐(0)
摘要:pwd:Print working directory 显示当前工作路径。 su:Swith user 切换用户,切换到root用户 cd:Change directory 切换目录 ls:List files 列出目录下的文件 ps:Process Status 进程状态 mkdir:Make d 阅读全文
posted @ 2018-08-08 18:33 bear_ge 阅读(557) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3308 阅读全文
posted @ 2018-08-07 17:14 bear_ge 阅读(138) 评论(0) 推荐(0)
摘要:线段树 区间合并模板 --区间更新 题目:http://poj.org/problem?id=3667 阅读全文
posted @ 2018-08-06 18:57 bear_ge 阅读(464) 评论(0) 推荐(0)
摘要: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=... 阅读全文
posted @ 2018-08-03 18:56 bear_ge 阅读(126) 评论(0) 推荐(0)
摘要:#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... 阅读全文
posted @ 2018-08-03 10:06 bear_ge 阅读(135) 评论(0) 推荐(0)