1.For New TFLite Beginner

一、 Getting Started for ML Beginners
This document explains how to use machine learning to classify (categorize) Iris flowers by species.  This document dives deeply into the TensorFlow code to do exactly that, explaining ML fundamentals along the way.
If the following list describes you, then you are in the right place:
You know little to nothing about machine learning.
You want to learn how to write TensorFlow programs.
You can code (at least a little) in Python.
Fortunately, someone has already created [a data set of 120 Iris
with the sepal and petal measurements.  This data set has become
one of the canonical introductions to machine learning classification problems.
which contains handwritten digits, is another popular classification
problem.) The first 5 entries of the Iris data set
look as follows:
| Sepal length | sepal width | petal length | petal width | species
| ---          | ---         | ---          | ---         | ---
|6.4           | 2.8         | 5.6          | 2.2         | 2
|5.0           | 2.3         | 3.3          | 1.0         | 1
|4.9           | 2.5         | 4.5          | 1.7         | 2
|4.9           | 3.1         | 1.5          | 0.1         | 0
|5.7           | 3.8         | 1.7          | 0.3         | 0
Let's introduce some terms:
*   The last column (species) is called the
    the first four columns are called
    Features are characteristics of an example, while the label is
    the thing we're trying to predict.
    consists of the set of features and the label for one sample
    flower. The preceding table shows 5 examples from a data set of
    120 examples.
Each label is naturally a string (for example, "setosa"), but machine learning
typically relies on numeric values. Therefore, someone mapped each string to
a number.  Here's the representation scheme:
* 0 represents setosa
* 1 represents versicolor
* 2 represents virginica
二、 Models and training
A **model** is the relationship between features
and the label.  For the Iris problem, the model defines the relationship
between the sepal and petal measurements and the predicted Iris species. Some
simple models can be described with a few lines of algebra, but complex machine
learning models have a large number of parameters that are difficult to
summarize.
Could you determine the relationship between the four features and the
Iris species *without* using machine learning?  That is, could you use
traditional programming techniques (for example, a lot of conditional
statements) to create a model?  Maybe. You could play with the data set
long enough to determine the right relationships of petal and sepal
measurements to particular species.  However, a good machine learning
approach *determines the model for you*.  That is, if you feed enough
representative examples into the right machine learning model type, the program
will determine the relationship between sepals, petals, and species.
**Training** is the stage of machine learning in which the model is
gradually optimized (learned).  The Iris problem is an example
of [**supervised machine
in which a model is trained from examples that contain labels.  (In
[**unsupervised machine
the examples don't contain labels. Instead, the model typically finds
patterns among the features.)
三、Get the sample program
1. Install TensorFlow
An example of [ Installing TensorFlow on Windows]
1.Windows requirements:
    * 64-bit, x86 desktops or laptops
    * Windows 7 or later
2.Install TensorFlow with CPU support only
  • Install Python 3.6.x
* [Python 3.6.x 64-bit from python.org]( Python Release Python 3.6.2 | Python.org)
  • Update pip
python -m pip install --upgrad pip
  • Install TensorFlow
2. Activate your TensorFlow environment
3. Install or upgrade pandas by issuing the following 
command:pip install pandas
4.get sample program;
Clone the TensorFlow Models
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

高桐@BILL

分享快乐,快乐分享...

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值