摘要: contour和contourf都是画三维等高线图的,不同点在于contourf会对等高线间的区域进行填充,区别如下: [python] view plain copy import numpy as np import matplotlib.pyplot as plt from matplotli 阅读全文
posted @ 2018-06-12 10:21 jude_python 阅读(8306) 评论(0) 推荐(1) 编辑
摘要: numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None) 在指定的间隔内返回均匀间隔的数字。 返回num均匀分布的样本,在[start, stop]。 这个区间的端点可以任意的被排除在外。 阅读全文
posted @ 2018-06-12 08:39 jude_python 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 转至:https://blog.csdn.net/langb2014/article/details/50488727 输入数据变为房价预测: 105.0,2,0.89,510.0105.0,2,0.89,510.0138.0,3,0.27,595.0135.0,3,0.27,596.0106.0, 阅读全文
posted @ 2018-06-11 11:18 jude_python 阅读(3302) 评论(0) 推荐(0) 编辑
摘要: Lecun Mnist数据集下载 及方便训练的reader 第三种加载方式需要 gzip和struct 阅读全文
posted @ 2018-06-06 10:51 jude_python 阅读(576) 评论(0) 推荐(0) 编辑
摘要: 转至:https://blog.csdn.net/red_stone1/article/details/77851177 上节课我们主要对深度学习(Deep Learning)的概念做了简要的概述。我们先从房价预测的例子出发,建立了标准的神经网络(Neural Network)模型结构。然后从监督式 阅读全文
posted @ 2018-05-22 08:59 jude_python 阅读(745) 评论(0) 推荐(0) 编辑
摘要: features = [1,2,3,4] retDataSet=[] reducedFeatVec=features[:0] print(reducedFeatVec) reducedFeatVec.extend(features[1:]) #从1开始往 后加进来 print(reducedFeat 阅读全文
posted @ 2018-05-15 19:31 jude_python 阅读(857) 评论(0) 推荐(0) 编辑
摘要: 载请注明作者和出处: http://blog.csdn.net/c406495762 运行平台: Windows Python版本: Python3.x IDE: Sublime text3 一 前言 二 决策树 三 决策树构建的准备工作 1 特征选择 11 香农熵 12 编写代码计算经验熵 13 阅读全文
posted @ 2018-05-15 15:13 jude_python 阅读(308) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*-import osimport sysimport numpy as np import operatorfrom numpy import *from common_libs import *import matplotlib.pyplot as pl 阅读全文
posted @ 2018-05-13 20:48 jude_python 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 逐次下降法的定义: 下面给出Python实现 # -*- coding: utf-8 -*-import numpy as np from numpy import *from common_libs import *import matplotlib.pyplot as plt #消元发求解方程组 阅读全文
posted @ 2018-05-13 19:21 jude_python 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 数据的导入和内存管理 1.数据表文件的读取 由于现在大多数系统内存都在几个G,因此小点的数据表处理比较简单,可以直接读入内存并结构化 下面例子是用python读取数据表文件,并将其存到矩阵中,并输出矩阵的行、列数 [python] view plain copy # -*- coding: utf- 阅读全文
posted @ 2018-05-12 16:19 jude_python 阅读(1317) 评论(0) 推荐(0) 编辑