
深度学习与神经网络
光于前裕于后
本人有多年大数据与机器学习开发经验,并乐于总结与分享,如有侵权或写的不对的地方可以私信我,有问题也可以问我哟,free~
展开
-
使用Keras实现多层前馈神经网络对Iris(鸢尾花卉)数据集进行多分类
Keras优点多多,搭建模型快实现简单,不过建议了解神经网络基本原理后再用。 backend建议用TensorFlow,比Theano快很多。from sklearn.datasets import load_irisfrom sklearn.model_selection import train_test_splitimport kerasfrom keras.mo...原创 2018-04-16 20:37:59 · 6773 阅读 · 6 评论 -
Udacity优达学城 TensorFlow笔记2-对服饰图像分类
Fashion MNIST Dataset有T恤、短靴等10个类别图像,每张图片为28*28像素的灰阶图像共70000张图像,60K当作训练集,10K当作测试集# !pip install -U tensorflow_datasets# !pip install -U -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==...原创 2019-04-16 17:12:07 · 491 阅读 · 0 评论 -
tensorflow-gpu-cudnn-cuda对应版本
https://tensorflow.google.cn/install/source#linux原创 2019-04-17 13:51:51 · 2889 阅读 · 4 评论 -
Udacity优达学城 TensorFlow笔记1-将摄氏度转为华氏度
import tensorflow as tf# 设置日志输出等级tf.logging.set_verbosity(tf.logging.ERROR)import numpy as np# 输入摄氏度,输出华氏度input_ = np.array([-40, -10, 0, 8, 15, 22, 38], dtype=float)output = np.array([-40, 14...原创 2019-04-15 11:49:35 · 487 阅读 · 2 评论 -
使用TF1.12搭建CNN-Fashion MNIST Dataset
import tensorflow as tftf.enable_eager_execution()from tensorflow import kerasimport numpy as npimport matplotlib.pyplot as pltimport osimport subprocessprint(tf.__version__)1.12.0fashio...原创 2019-04-18 11:29:28 · 925 阅读 · 0 评论 -
使用Keras搭建CNN-MNIST 手写数字 Dataset
import tensorflow as tfF:\Anaconda3\envs\tensorflow-gpu\lib\site-packages\h5py\__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is depreca...原创 2019-04-18 11:39:36 · 837 阅读 · 0 评论 -
搭建CNN识别你的猫猫狗狗
本文为Udacity优达学城深度学习课程笔记第三篇,使用图像增强对猫狗图像进行分类。课程地址:https://classroom.udacity.com/courses/ud187最终目的是训练CNN模型,使其能识别上面的小狗狗是小狗狗。可能遇到的问题有过拟合、输入图像的尺寸不一,不过不用担心,本文会一一解决。为了保持笔记与课程内容一致,代码没有进行修改,如需提升识别准确率可自行对模型进行修...原创 2019-05-29 14:45:49 · 1865 阅读 · 2 评论