![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
朴素.无恙
朴素年华.梦想无恙
展开
-
tensorflow初学者教程第一课
TensorFlow教程适用于初学者第一节对TensorFlow进行一个操作opimport tensorflow as tf#传建一个常亮opm1=tf.constant([[3,3]])#创建一个常量opm2=tf.constant([[2],[3]])#创建一个矩阵乘法op,把m1,m2传入product=tf.matmul(m1,m2)print(product)#此时...原创 2018-10-18 14:51:50 · 1431 阅读 · 0 评论 -
tensorflow之二(利用mnist数据集搭建简单神经网络)
第二课TensorFlow解决手写数字识别import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data#载入数据集mnist=input_data.read_data_sets("MNIST_data",one_hot=True)#每个批次的大小batch_s原创 2018-10-19 15:08:57 · 409 阅读 · 0 评论 -
tensorflow之三(dropout)
tensorflow第三课 dropout # -*- coding: utf-8 -*-import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data#载入数据集mnist=input_data.read_data_sets("MNIST_data",one_hot=Tru...原创 2018-10-20 16:08:04 · 392 阅读 · 0 评论 -
TensorFlow之四(将准确度提升至98%(optimizer、lr))
TensorFlow第四课如何将准确度提升至98%如何将准确度提升至98%以上,在这里使用到了优化器的选择以及学习率的设置# -*- coding: utf-8 -*-"""Created on Mon Oct 22 14:51:33 2018如何将准确度提升至98以上@author: dj"&am原创 2018-10-23 11:25:17 · 2364 阅读 · 0 评论 -
在Python中如何保存图像
在Python中如何保存图像,如何将数组保存为图像主要是看了TensorFlow中第一部分中看到的,查了查资料总结下如何将数组保存为图像原程序如下import scipy.miscimport os#from PIL import Image#把原始图片保存至MNIST_data/raw/下save_dir="MNIST_data/raw/"if os.path.exists(sa...原创 2018-11-08 15:17:25 · 8714 阅读 · 0 评论