
Python
文章平均质量分 62
我有颗小粒的痣
stay hungry stay foolish
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Google Translate + Python进行excel内单词的翻译(一)google translate探索
Google Translate + Python进行excel内单词的翻译 首先打开Google translate的界面: 找到包含我们所需要的信息的Request 这个request返回的是一个json文件 这个api的地址为:https://translate.google.com/translate_a/single?client=t&sl=en&tl=zh-CN&...原创 2018-09-21 23:52:24 · 3733 阅读 · 0 评论 -
卷积神经网络(二){Keras 由浅入深}
卷积神经网络(二) TensorFlow Keras python & mathematics 卷积神经网络卷积是基本的操作,但是在构建神经网络的过程中,过拟合现象和收敛速度慢都是很容易出现的问题,本文就这两个问题进行分析和提出解决方法。 过拟合 局部响应标准化(lrn):一般放于relu函数后 正则化:一般有L1, L2对权值进行操作;L1是对权值的一阶操作,一般用于特征...原创 2019-08-29 12:39:25 · 248 阅读 · 0 评论 -
卷积神经网络 {Keras 由浅入深}
卷积神经网络 TensorFlow Keras python & mathematics 卷积神经网络能够有效的处理图像文件,当然换一种说法就是能够有效处理矩阵。 其关键部分就是**卷积核(过滤器)**的生成。 当然还有一些其他的基础操作。 对于卷积核 卷积核的特征: __init__( filters, kernel_size, strides=(...原创 2019-08-28 15:20:03 · 247 阅读 · 0 评论 -
随机森林 {Keras 由浅入深}
随机森林 TensorFlow Keras sklearn python & mathematics 随机森林是集成学习中的一种方法。 随机森林采用的方法为bagging(样本不放回) from sklearn.ensemble import RandomForestClassifier 可参考链接: https://www.cnblogs.com/zongfa/p/9...原创 2019-08-26 16:45:08 · 2504 阅读 · 0 评论 -
决策树 {Keras 由浅入深}
决策树 TensorFlow Keras sklearn python & mathematics 决策树是基于区域(region-based)的机器学习方法,是非线性的。 主要用于为集合进行分配,达到分配的子集的并为全集,各子集互不相交 即: χ=∪i=0nRi\chi = \cup^n_{i=0} R_iχ=∪i=0nRi Ri∩Rj=ϕ,i≠jR_i \cap ...原创 2019-08-25 22:51:58 · 1153 阅读 · 0 评论 -
逻辑回归 {Keras 由浅入深}
逻辑回归 TensorFlow Keras python & mathematics 逻辑回归主要用于二分类问题,也就是解决是或不是等的一般疑问句问题。 之所以能够区别于线性回归这样的解决连续性解得问题主要在于逻辑回归采用了一个特殊的函数Sigmoid 所以这个激活函数能够把值规定在0-1之间,这就相当于给出了一个概率值。给出的因变量数越大,其概率越大。 一般来说我们也...原创 2019-08-25 13:35:42 · 713 阅读 · 0 评论 -
Data Analysis
写在前面 该篇主要讲述的是数据分析的代码实现: 包含: Linear Regression Logistic_Regression SVM Linear Regression import tensorflow as tf import numpy def read_data(): """读取数据""" pass X = tf.placeholder(tf.float32, shape...原创 2019-05-21 14:59:26 · 312 阅读 · 0 评论 -
大学生的小乐趣:python网页爬虫
网页Dev 网络爬虫主要看在网页的检查元素的这两个页面(Element、Network) Element :index页面的源代码(并且能进行快速的查找) Network:查找客户端和服务端之间的各种流 python Code python里面含有多种框架使得对网页内容进行爬取简单而有效。 requests import requests response = requests.get("ht...原创 2019-04-13 14:58:58 · 285 阅读 · 0 评论 -
常见的Python框架--matplotlib
matplotlib 获取方法: https://matplotlib.org/users/installing.html#building-on-linux sudo apt-get install python-matplotlib #python2. sudo apt-get install python3-matplotlib #python3. 简介 用于数据可视化 #easy exa...原创 2018-12-26 22:09:02 · 316 阅读 · 2 评论 -
手写决策树并可视化
决策树 可视化 描述 采用数据为UCI数据库中的Lenses Data Set(https://archive.ics.uci.edu/ml/datasets/Lenses) 包含 24个实例 3个分类: 1 : the patient should be fitted with hard contact lenses, 2 : the patient should be fitted wit...原创 2019-09-28 19:26:43 · 2908 阅读 · 0 评论