摘要: 5. 最长回文子串 阅读全文
posted @ 2019-01-04 16:27 tech-engin 阅读(959) 评论(0) 推荐(0) 编辑
摘要: 无重复字符的最长子串 阅读全文
posted @ 2019-01-04 15:31 tech-engin 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 汇总区间 阅读全文
posted @ 2019-01-03 18:51 tech-engin 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 本文主要参考了https://mp.weixin.qq.com/s/rbaPmBejID8-rYui35Snrg的表述,加上部分自己的理解 学习任何算法都要了解该算法解决什么问题?我们看看KMP算法主要解决什么问题。我们举一个例子,已知字符串1(ABCABBABAABBA)中查找字符串2(ABCAA 阅读全文
posted @ 2018-05-02 19:26 tech-engin 阅读(341) 评论(0) 推荐(0) 编辑
摘要: 1、做多分类问题时候(mutticlass),如果遇到 阅读全文
posted @ 2018-04-28 11:43 tech-engin 阅读(9295) 评论(0) 推荐(0) 编辑
摘要: 最近在使用sklearn做分类时候,用到metrics中的评价函数,其中有一个非常重要的评价函数是F1值,(关于这个值的原理自行google或者百度) 在sklearn中的计算F1的函数为 f1_score ,其中有一个参数average用来控制F1的计算方式,今天我们就说说当参数取micro和ma 阅读全文
posted @ 2018-04-27 21:08 tech-engin 阅读(39149) 评论(2) 推荐(3) 编辑
摘要: 1、先安装git ubuntu: apt-get install git centos: yum install git 2、下载xgboost仓库,注意有--recursive(有子模块哦) git clone --recursive https://github.com/dmlc/xgboost 阅读全文
posted @ 2018-04-26 23:37 tech-engin 阅读(5047) 评论(0) 推荐(0) 编辑