Recently in the study of Huang Wenjian TensorFlow Books, hope to do a summary of learning.Softmax Regression Algorithm principle: When we predict a picture, we will calculate the probability of each number, such as 3 probability is the probability of 3%,5 is 6%,1 probability is 80%, then return 1.TensorFlow version: 0.8.0# import handwriting recognition data, TensorFlow
Support original, more content Welcome to the author blog:http://www.china10s.com/blog/?p=490
Machine learning This method of calculation has been known to the world in the last century, but it has not been developed because of the computer-limited computing power and network speed. With the Moore effect, the current computer performance has soared, even in the hands of the iphone, than the United States on the moon on the machine used to be stronger. Therefore, in this context, machine learning
LeNet5 convolution neural network forward propagation
# TensorFlow actual combat Google Depth Learning Framework 06 image recognition and convolution neural network # WIN10 Tensorflow1.0.1 python3.5.3 # CUDA v8.0 cudnn-8.0-windows10-x64-v5.1 # filename:LeNet5_infernece.py # LeNet5 forward propagate import TensorFlow as TF # 1. Set the parameters of the neural network Input_node = 784 Output_node = Ten im
~/ Nvidia_cuda-7.5_samples/bin/x86_64/linux/release
./devicequery
CD ~/nvidia_cuda-7.5_samples/1_utilities /bandwidthtest
make
./bandwidthtest1 2 3 4 5 6 7 8 9 10 11
If two test results are pass, it means that Cuda is running normally.
Reference links
Cuda-7.5-toolkit
2. Install TensorFlow
Essential Python-pip and Python-dev. in this window, enter the command: $ sudo apt-get install Python-pip python-dev
Notice that there is already a $ symbol in t
Define Cell
In a lot of RNN paper we see similar graphs:
Each of these small rectangles represents a cell. Each cell is a slightly more complex structure, as shown in the following diagram:
The context in the diagram is a cell structure, and you can see that it accepts input (T), context (t-1), and then outputs output (t), such as the Rnn cell, which we use to stack up in our task, That is, the current layer of the cell output also as the next layer of input, so can be introduced into each ce
Brief introduction
This article describes the second method of data import for TensorFlow.
This approach is somewhat cumbersome to maintain efficiency. There are several steps to be divided:-Write all samples to binary (execute only once)-Create tensor to read a sample from a binary file-Create tensor, randomly read a mini-batch from binary files-Mini-batchtensor the incoming network as an input node. binary files
Use Tf.python_io. Tfrecordwriter crea
Tensorflow-tensor Understanding and use
Flyfish
How to understand the tensor in TensorFlowTensor tensorEnglish [' tensə-sɔː] beauty [' Tɛnsɚ]
What is a Tensor?
Tensors are simply mathematical objects that can is used to describePhysical properties, just like scalars and vectors. In fact tensorsare merely a generalisation of scalars and vectors; A scalar is a zeroRank tensor, and a vector is a-a-rank tensor.
Tensor is a simple mathematical object that
Reproduced in the Daily Digest of deep learning, convlstm principle and its tensorflow realizationThis document references convolutional LSTM network:a machine learning approach forPrecipitation nowcasting
Today introduced a very famous network structure--convlstm, it not only has the LSTM time series modelling ability, but also can like CNN to portray the local characteristic, can say is the spatiotemporal characteristic to have.
Lstm has made great
Ubuntu 17 comes with Python 3.6 directly with the command installation PIP3 install TensorFlow will be prompted to have a module suitable for python3.5, not suitable for python3.6.I solved this, I installed the lower version of the TensorFlow,Download the lower version of https://mirrors.tuna.tsinghua.edu.cn/help/tensorflow/from the Tsinghua University imageSelec
TensorFlow installation and jupyter notebook configuration, tensorflowjupyter
Tensorflow uses anaconda for ubuntu installation and jupyter notebook running directory and remote access configuration
Install Anaconda in Ubuntu
bash ~/file_path/file_name.sh
After the license is displayed, press Ctrl + C to skip it, and yes to agree.
After the installation is complete, ask whether to add the path or modify the
TensorFlow saver specifies variable access, tensorflowsaver
Today, I would like to share with you the point of using the saver of TensorFlow to access the trained model.
1. Use saver to access variables;2. Use saver to access specified variables.
Use saver to access variables.
Let's not talk much about it. first go to the code
# Coding = utf-8import OS import tensorflow
In the summary of Bayesian individualized sequencing (BPR) algorithm, we discuss the principle of Bayesian personalized sequencing (Bayesian personalized Ranking, hereinafter referred to as BPR), and we will use BPR to make a simple recommendation from the practical point of view. Since the existing mainstream open source class library has no BPR, and it is relatively simple, so with TensorFlow to implement a simple BPR algorithm, let us begin.1. BPR
Software
Version
Window10
X64
Python
3.6.4 (64-bit)
CUDA
CUDA Toolkit 9.0 (Sept 2017)
CuDNN
CuDNN v7.0.5 (Dec 5), for CUDA 9.0
The above version of the test passed.Installation steps:1. to install python, remember to tick pip. 2. detects if CUDA is supported .For more information on the NVIDIA website, see: Https://developer.nvidia.com/cuda-gpus, you can see if you can use
1. Preparation
Windows 10 system, 3.6GHZ CPU, 16G memory
Visual Studio or 2015
Download and install Git
Download and install CMake
Download Install Swigwin If you do not need Python bindings, you can skip
Clone TensorFlow
Switch TensorFlow to the git tag you want to compile
Modify Tensorflow/contrib/cmake/cmakelists.txtif(Tensorflow_optimize_for
First, you can install a anaconda.
You can then use the Python pip to install a specific version of the TensorFlow, such as
Pip Install tensorflow-gpu==1.1.0
Upgrade to the latest:
GPU Version:
Pip Install--upgrade Tensorflow-gpu
CPU Version:
Pip Install--upgrade TensorFlow ==============
How to view the curr
Copyright NOTICE: This article for Bo Master hjimce original article, the original address is http://blog.csdn.net/hjimce/article/details/51899683.
I. Course of study
Personal feeling for any deep learning library, such as Mxnet, TensorFlow, Theano, Caffe, and so on, basically I use the same learning process, the general process is as follows:
(1) Training stage : Data Packaging-"network construction, training-" model preservation-"visual view of loss
1. Installing TensorFlow
Pip
Pip is a Python package installation and management tool, and the installation method is as follows
# ubuntu/linux 64-bit
$ sudo apt-get install python-pip python-dev
# Mac OS X
$ sudo easy_install pip
Installing TensorFlow
# Ubuntu/linux 64-bit, CPU only, Python 2.7:
$ sudo pip install--upgrade https://storage.googleapis.com/tensorflow
The following small series for everyone to bring a TensorFlow installation and Jupyter notebook configuration method. Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.
TensorFlow using Anaconda in Ubuntu installation method and Jupyter notebook run directory and Remote access configuration
Install Anaconda under Ubuntu
TensorFlow Varibale usage, tensorflowvaribale
-------------------------------------------
Reprinted Please note: from blog
Xiuyuxuanchen
Address: http://www.cnblogs.com/greentomlee/
-------------------------------------------Varibale usage
Instance:
Example:
First:
#! /Usr/bin/env python
This statement specifies the python runtime environment. There are two ways to specify this method. One is to specify the python path ---#! /Usr/bin/python
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.