上一页 1 2 3 4 5 6 7 8 ··· 12 下一页
摘要: '''Given an integer array, find a subarray where the sum of numbers is zero.Your code should return the in... 阅读全文
posted @ 2019-03-01 17:40 jj千寻 阅读(148) 评论(0) 推荐(0) 编辑
摘要: import hashlib# hash转换print(hash('aa'))print(hash('aa'))print(hash(111))print(hash(str([1, 2, 3, 4])))# md... 阅读全文
posted @ 2019-03-01 13:26 jj千寻 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-03-01 13:26 jj千寻 阅读(78) 评论(0) 推荐(0) 编辑
摘要: from queue import PriorityQueueclass Job(object): def __init__(self, priority, description): sel... 阅读全文
posted @ 2019-03-01 11:31 jj千寻 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 1.先要看这个,凸函数性质:https://blog.csdn.net/jiang425776024/article/details/876078482.于是,对于任意点集 ,若 且 ,使用数学归纳法,可以证... 阅读全文
posted @ 2019-02-27 21:35 jj千寻 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 目录1.名称简介2.设计集成原则3.集成学习算法分类4.Boosting4.1基本流程4.2Adaboost实现4.2.1.分类4.2.2.回归4.2.3Adaboost的正则化4.2.4Adaboost小结5.... 阅读全文
posted @ 2019-02-26 17:17 jj千寻 阅读(1424) 评论(0) 推荐(1) 编辑
摘要: 目录0.scipy.optimize.minimize1.无约束最小化多元标量函数1.1Nelder-Mead(单纯形法) 1.2拟牛顿法:BFGS算法1.3牛顿 - 共轭梯度法:Newton-CG2 约束最小化... 阅读全文
posted @ 2019-02-22 22:34 jj千寻 阅读(4902) 评论(0) 推荐(0) 编辑
摘要: 目录1.马尔科夫性2.马尔科夫随机过程3.马尔科夫决策过程(MDP)3.1记状态s的状态值函数v(用于评价s的价值)为:3.2状态—行为价值函数q:3.3计算形式:3.4定义最优:4.实际计算MDP过程 参考博客... 阅读全文
posted @ 2019-02-22 20:33 jj千寻 阅读(996) 评论(0) 推荐(0) 编辑
摘要: 目录1 GridSearchCV:网格式暴力搜索2.RandomizedSearchCV:采样式搜索3.hyperopt:贝叶斯优化总结全都在:sklearn.model_selection里面的https://... 阅读全文
posted @ 2019-02-21 22:27 jj千寻 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 传入参数:1)plt:调用对象中的pyplot。如:import matplotlib.pyplot as plt2)predict:调用对象中ML算法的predict函数,用于预测对X,Y构造网格后的预测。如:... 阅读全文
posted @ 2019-02-21 11:20 jj千寻 阅读(817) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 12 下一页