![](https://img-blog.csdnimg.cn/20190626232838806.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Tensorflow练习
Tensorflow练习
AmazingZXY
愿与大家一起学习
展开
-
tf2学习 线性回归
波士顿房价预测 # !/usr/bin/python # -*- coding: UTF-8 -*- import tensorflow as tf import numpy as np from tensorflow import keras import os class Regressor(keras.layers.Layer): """ 定义线性回归的类 ""...原创 2019-12-15 00:27:22 · 269 阅读 · 0 评论 -
tf2学习 mnist
源码 # !/usr/bin/python # -*- coding: UTF-8 -*- import tensorflow as tf from tensorflow.keras import datasets, layers, optimizers, Sequential, metrics import numpy as np (train_x,train_y),(test_x,tes...原创 2019-12-14 21:43:07 · 528 阅读 · 0 评论 -
tf2学习 卷积网络mnist识别
源码 # !/usr/bin/python # -*- coding: UTF-8 -*- """ tf2.0入门demo实例 使用卷积网络 mnist手写体识别 """ import os import time import numpy as np import tensorflow as tf from tensorflow.python.ops import summary_ops_...原创 2019-12-14 20:31:03 · 314 阅读 · 0 评论 -
tf2学习 全连接网络mnist识别
源码地址 设置日志 在程序运行时先设置日志的打印级别 0 INFO 1 WARN 2 ERRO 3 FATAL 代码 os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' 获取mnist数据 使用keras.datasets去加载mnist数据,加载完数据后进行切片,切片的具体操作就是将(60002828)的mnist切成6000个28*28的array,也就是从...原创 2019-12-14 15:16:26 · 495 阅读 · 0 评论