![](https://img-blog.csdnimg.cn/2019092322365021.jpg?x-oss-process=image/resize,m_fixed,h_224,w_224)
Python_TensorFlow
我是一片小树叶
树叶虽小,我心很大
展开
-
TensorFLow Basics
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowimport os import tensorflow as tfwelcome = tf.constant('welcome to tensorflow world')with tf.Session() ...原创 2019-04-03 15:53:58 · 262 阅读 · 0 评论 -
Linear Models
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowimport os import tensorflow as tfimport numpy as npimport xlrdfrom sklearn.utils import check_random_sta...原创 2019-04-03 15:56:33 · 1069 阅读 · 0 评论 -
Predictive Models
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowimport os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import tensorflow as tfimport numpy as npimport matpl...原创 2019-04-03 22:29:38 · 411 阅读 · 0 评论 -
Linear SVM
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowSVM参考:https://blog.csdn.net/qq_30534935/article/details/83064552https://blog.csdn.net/qq_30534935/article/...原创 2019-04-06 21:20:34 · 680 阅读 · 0 评论 -
MultiClass Kernel SVM
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowimport os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' import matplotlib.pyplot as pltimport numpy as npimpo...原创 2019-04-07 21:14:19 · 408 阅读 · 0 评论 -
Simple Multi Layer Perceptron
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowfrom __future__ import print_functionfrom tensorflow.examples.tutorials.mnist import input_dataimport tens...原创 2019-04-20 21:14:35 · 223 阅读 · 0 评论 -
Convolutional Neural Network
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflow这是其中 train.py,引用部分其他函数,别的文件请自行进入链接下载from __future__ import print_functionfrom tensorflow.examples.tutorial...原创 2019-04-21 22:54:38 · 357 阅读 · 0 评论 -
Recurrent Neural Network
供个人学习记录,来源于:https://github.com/machinelearningmindset/TensorFlow-Course#why-use-tensorflowimport tensorflow as tfimport numpy as npimport matplotlib.pyplot as pltimport argparse################...原创 2019-04-22 15:07:14 · 414 阅读 · 0 评论 -
basic_operations
来源:https://github.com/aymericdamien/TensorFlow-Examples'''Basic Operations example using TensorFlow library.Author: Aymeric DamienProject: https://github.com/aymericdamien/TensorFlow-Examples/''...转载 2019-04-23 22:23:49 · 221 阅读 · 0 评论 -
linear_regression
来源:https://github.com/aymericdamien/TensorFlow-Examples'''A linear regression learning algorithm example using TensorFlow library.Author: Aymeric DamienProject: https://github.com/aymericdamien/T...转载 2019-04-23 22:25:04 · 160 阅读 · 0 评论 -
logistic_regression
来源:https://github.com/aymericdamien/TensorFlow-Examples'''A logistic regression learning algorithm example using TensorFlow library.This example is using the MNIST database of handwritten digits(h...转载 2019-04-23 22:26:03 · 145 阅读 · 0 评论 -
nearest_neighbor
来源:https://github.com/aymericdamien/TensorFlow-Examples'''A nearest neighbor learning algorithm example using TensorFlow library.This example is using the MNIST database of handwritten digits(http...转载 2019-04-23 22:26:51 · 509 阅读 · 0 评论 -
kmeans
""" K-Means.Implement K-Means algorithm with TensorFlow, and apply it to classifyhandwritten digit images. This example is using the MNIST database ofhandwritten digits as training samples (http:/...转载 2019-04-23 22:27:28 · 150 阅读 · 0 评论 -
random_forest
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Random Forest.Implement Random Forest algorithm with TensorFlow, and apply it to classify handwritten digit images. This example is using...转载 2019-04-23 22:28:21 · 97 阅读 · 0 评论 -
gradient_boosted_decision_tree
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Gradient Boosted Decision Tree (GBDT).Implement a Gradient Boosted Decision tree with TensorFlow to classifyhandwritten digit images. Thi...转载 2019-04-23 22:29:18 · 256 阅读 · 0 评论 -
word2vec
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Word2Vec.Implement Word2Vec algorithm to compute vector representations of words.This example is using a small chunk of Wikipedia article...转载 2019-04-23 22:30:06 · 139 阅读 · 0 评论 -
neural_network
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Neural Network.A 2-Hidden Layers Fully Connected Neural Network (a.k.a Multilayer Perceptron)implementation with TensorFlow. This example...转载 2019-04-24 16:06:53 · 348 阅读 · 0 评论 -
convolutional_network
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Convolutional Neural Network.Build and train a convolutional neural network with TensorFlow.This example is using the MNIST database of h...转载 2019-04-24 16:07:43 · 186 阅读 · 0 评论 -
recurrent_network
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Recurrent Neural Network.A Recurrent Neural Network (LSTM) implementation example using TensorFlow library.This example is using the MNIS...转载 2019-04-24 16:53:04 · 190 阅读 · 0 评论 -
dynamic_rnn
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Dynamic Recurrent Neural Network.TensorFlow implementation of a Recurrent Neural Network (LSTM) that performsdynamic computation over seq...转载 2019-04-24 20:31:29 · 257 阅读 · 0 评论 -
autoencoder
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Auto Encoder Example.Build a 2 layers auto-encoder with TensorFlow to compress images to alower latent space and then reconstruct them....转载 2019-04-24 22:02:28 · 290 阅读 · 0 评论 -
variational_autoencoder
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Variational Auto-Encoder Example.Using a variational auto-encoder to generate digits images from noise.MNIST handwritten digits are used ...转载 2019-04-24 22:18:27 · 373 阅读 · 0 评论 -
gan
来源:https://github.com/aymericdamien/TensorFlow-Examples""" Generative Adversarial Networks (GAN).Using generative adversarial networks (GAN) to generate digit images from anoise distribution.Ref...转载 2019-04-25 15:49:53 · 236 阅读 · 0 评论 -
dcgan
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorials""" Deep Convolutional Generative Adversarial Network (DCGAN).Using deep convolutional generative adversarial networks (DCGAN) to ge...转载 2019-04-25 16:04:56 · 907 阅读 · 0 评论 -
save_restore_model
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorials'''Save and Restore a model using TensorFlow.This example is using the MNIST database of handwritten digits(http://yann.lecun.com/e...转载 2019-04-25 16:11:24 · 179 阅读 · 0 评论 -
tensorboard_basic
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorials'''Graph and Loss visualization using Tensorboard.This example is using the MNIST database of handwritten digits(http://yann.lecun....转载 2019-04-25 16:15:26 · 136 阅读 · 0 评论 -
build_an_image_dataset
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorials""" Build an Image Dataset in TensorFlow.For this example, you need to make your own set of images (JPEG).We will show 2 different ...转载 2019-04-25 20:16:18 · 417 阅读 · 0 评论 -
tensorflow_dataset_api
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorials""" TensorFlow Dataset API.In this example, we will show how to load numpy array data into the new TensorFlow 'Dataset' API. The Da...转载 2019-04-25 20:28:10 · 322 阅读 · 0 评论 -
multigpu_basics
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorialsfrom __future__ import print_function'''Basic Multi GPU computation example using TensorFlow library.Author: Aymeric DamienProjec...转载 2019-04-25 20:29:12 · 122 阅读 · 0 评论 -
multigpu_cnn
来源:https://github.com/aymericdamien/TensorFlow-Examples#tutorials''' Multi-GPU Training Example.Train a convolutional neural network on multiple GPU with TensorFlow.This example is using TensorFl...转载 2019-04-25 20:30:02 · 177 阅读 · 0 评论 -
Softmax Regression
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。from tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("MNIST_data/", one_hot=True) print(mnist.train.images.shape,mnist.train...原创 2019-04-28 16:38:20 · 139 阅读 · 0 评论 -
Auto Encoder
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。import numpy as npimport sklearn.preprocessing as prepimport tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datadef xavier_init( fan_in, f...原创 2019-04-28 16:39:42 · 316 阅读 · 0 评论 -
Multilayer Preceptron
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。import tensorflow as tffrom tensorflow.examples.tutorials.mnist import input_datamnist = input_data.read_data_sets("MNIST_data/", one_hot=True)sess = tf.Interactiv...原创 2019-04-28 16:41:26 · 296 阅读 · 0 评论 -
CNN Based
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。#########导入MNIST数据########from tensorflow.examples.tutorials.mnist import input_dataimport tensorflow as tfmnist = input_data.read_data_sets('MNIST_data/', one_hot...原创 2019-04-28 16:42:26 · 387 阅读 · 0 评论 -
CNN Advance
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。先在命令行运行前两句代码,之后进https://github.com/zhangru822/tensorflow下载将models\tutorials\image中的cifar10替换。#!git clone https://github.com/tensorflow/models.git#!cd models/tutor...原创 2019-04-28 21:48:54 · 137 阅读 · 0 评论 -
CNN AlexNet
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。from datetime import datetimeimport mathimport timeimport tensorflow as tf #这里总共测试100个batch的数据。batch_size=32num_batches=100#定义一个用来显示网络每一层结构的函数print_activation...原创 2019-04-28 22:34:47 · 181 阅读 · 0 评论 -
CNN VGGNet
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。from datetime import datetimeimport mathimport timeimport tensorflow as tf#import os#os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' def conv_op(input_op,name,kh,kw,...原创 2019-04-28 22:43:23 · 139 阅读 · 0 评论 -
CNN InceptionNet
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。# -*- coding: utf-8 -*-#import os#os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # Inception V3 42层深# 载入模块、TensorFlow,定义截断正态分布函数trunc_normalimport tensorflow as t...原创 2019-04-28 22:50:03 · 195 阅读 · 0 评论 -
CNN ResNet
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。# -*- coding: utf-8 -*-#import os#os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2' # ResNet V2# 载入模块、TensorFlowimport collectionsimport tensorflow as tf slim = tf.co...原创 2019-04-28 22:51:17 · 201 阅读 · 0 评论 -
RNN Word2Vec
代码抄写自《tensorflow实战》一书,以便大家运行测试学习。#coding:utf-8#因为要下载数据,所以导入的依赖库比较多import collectionsimport math import osimport randomimport zipfileimport numpy as npimport urllibimport sysimport tensorflo...原创 2019-04-29 15:22:38 · 795 阅读 · 0 评论