摘要: 转自: https://www.cnblogs.com/jasonfreak/p/5448385.html 目录 1 特征工程是什么?2 数据预处理 2.1 无量纲化 2.1.1 标准化 2.1.2 区间缩放法 2.1.3 标准化与归一化的区别 2.2 对定量特征二值化 2.3 对定性特征哑编码 2 阅读全文
posted @ 2019-06-19 10:24 change_world 阅读(556) 评论(0) 推荐(0) 编辑
摘要: 1.将字符串的时间转换为时间戳 方法: a = "2013-10-10 23:40:00" 将其转换为时间数组 import time timeArray = time.strptime(a, "%Y-%m-%d %H:%M:%S") 转换为时间戳: timeStamp = int(time.mkt 阅读全文
posted @ 2019-05-03 18:02 change_world 阅读(943) 评论(0) 推荐(0) 编辑
摘要: 转自:https://www.cnblogs.com/yangruiGB2312/p/9374377.html 一、简介 贝叶斯优化用于机器学习调参由J. Snoek(2012)提出,主要思想是,给定优化的目标函数(广义的函数,只需指定输入和输出即可,无需知道内部结构以及数学性质),通过不断地添加样 阅读全文
posted @ 2019-04-15 17:43 change_world 阅读(478) 评论(0) 推荐(0) 编辑
摘要: 在训练模型后将模型保存的方法,以免下次重复训练。使用pickle模块或者sklearn内部的joblib一、使用pickle模块from sklearn import svmfrom sklearn import datasetsclf=svm.SVC()iris=datasets.load_iri 阅读全文
posted @ 2019-04-08 16:39 change_world 阅读(679) 评论(0) 推荐(0) 编辑
摘要: https://tracholar.github.io/machine-learning/2018/01/26/auc.html select (ry - 0.5*n1*(n1+1))/n0/n1 as aucfrom( select sum(if(y=0, 1, 0)) as n0, --50 s 阅读全文
posted @ 2019-04-02 18:39 change_world 阅读(2058) 评论(0) 推荐(0) 编辑
摘要: 原文 tf定义了tf.app.flags,用于支持接受命令行传递参数,相当于接受argv。 #第一个是参数名称,第二个参数是默认值,第三个是参数描述 import tensorflow as tf tf.app.flags.DEFINE_string('str_name', 'def_v_1',"d 阅读全文
posted @ 2019-03-08 17:32 change_world 阅读(357) 评论(1) 推荐(0) 编辑
摘要: https://blog.csdn.net/YQMind/article/details/80864133 https://zhuanlan.zhihu.com/p/54675834 https://blog.csdn.net/qq_41664845/article/details/84969266 阅读全文
posted @ 2019-03-03 18:32 change_world 阅读(212) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/qq_41664845/article/details/80775319 阅读全文
posted @ 2019-02-28 09:47 change_world 阅读(296) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/37644325 https://zhuanlan.zhihu.com/p/51679783 阅读全文
posted @ 2019-02-25 19:41 change_world 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 思想:yolo主模型输出三个特征图,如(?,13,13,anchor_num*(5+num_classes))、(?,26,26,anchor_num*(5+num_classes))、(?,52,52,anchor_num*(5+num_classes)),之后如尺度为13的特征图 会 变形为(? 阅读全文
posted @ 2019-02-20 20:11 change_world 阅读(362) 评论(0) 推荐(0) 编辑