当前位置:网站首页>一款入门神器TensorFlowPlayground
一款入门神器TensorFlowPlayground
2022-07-28 08:23:00 【51CTO】
tensorflow playground简介
TensorFlow游乐场是一个通过网页浏览器就可以训练简单神经网络 并实现了可视化训练过程的工具。
地址:http://playground.tensorflow.org/
TensorFlow playground使用
TensorFlow playground界面

TensorFlow playground界面示意图

功能详解
(1)控制运行
从左到右三个功能分别是:(a)重启;(b)运行;(c)一次运行一个周期
(2)运行周期数
用于查看训练的周期数
(3)参数调整区域
名称 ——> 功能说明
Learning rate ——>学习率(是一个超参数,在梯度下降算法中会用到;学习率是人为根据实际情况来设定)。
Activation——> 激活函数(默认为非线性函数Tanh;如果对于线性分类问题,这里可以不使用激活函数)。
Regularization——> 正则化(正则化是利用范数解决过拟合的问题)。 Problem type 问题类型(在这里我们要解决的是一个二分类问题,简单解释一下分类问题是指,给定一个新的模式,根据训练集推断它所对应的类别(如:+1,-1),是一种定性输出,也叫离散变量预测;回归问题是指,给定一个新的模式,根据训练集推断它所对应的输出值(实数)是多少,是一种定量输出,也叫连续变量预测;在这里我们属于分类问题。)。

(4)数据区域
名称 ——> 说明
DATA ——> 数据集类型(这里提供了四种数据集,我们默认选中第一种;被选中的数据也会显示在最右侧的OUTPUT中;在这个数据中,我们可以看到二维平面上有蓝色和黄色的小点;每一个小点代表一个样例例子;点的颜色代表样例的标签;因为只有两种颜色,所以这里是一个二分类问题;在这里我们以判断某工厂零件是否合格为例子来说明,那么黄色就代表不合格零件,蓝色就代表合格零件)。
Ratio of training to test ——> 数据用于测试的比例(直接对进度条进行操作即可调整)。 Noise对数据中引入噪声。
Batch size ——> 调整batch size的大小。

(5)网络结构调整区域
名称 ——> 说明
FEATURES ——> 特征向量(为了将一个实际问题对应到空间中的点,我们需要提取特征。在这里我们可以用零件的长度和质量来大致描述;所以这里x1就代表零件长度,x2代表零件质量;特征向量是神经网络的输入)。
HIDDEN LAYERS ——> 隐藏层(在输入和输出之间的神经网络称为隐藏层;一般神经网络的隐藏层越多这个神经网络越深;这里我们默认有一个隐藏层,这个隐藏层上有4个节点)。
直接通过点击各个图标即可选择Features的类型,对于隐藏层的操作,可以直接选择加减号即可获得想要的隐藏层层数以及每层的神经元个数。

(6)输出结果区域
设置完上面的参数,点击运行即可观测到输出结果的变化。
如果你选择的是分类问题,即可看到明显的边界变化以及loss在不断减小的情况,点击show test data可以显示未参与训练的test数据集的情况,点击Discretize output可以看到离散化后的结果。
演示
参数设置:学习率0.03,激活函数Tanh,正则项L1 比例0.001,问题类型Classification
数据:选择左上第一个
网络结构:选择含两个隐藏层,第一个隐藏层4个神经元,第二个隐藏层2个神经元

参考自:https://www.jianshu.com/p/95d46de63408

边栏推荐
- Why is the text box of Google material design not used?
- Machine learning: self paced and fine tuning
- Will sqlserver CDC 2.2 generate table locks when extracting large tables from the source
- Centralized log management with sentry
- 中国地图省>市>级>区>镇>村5级联动下载【2019和2021】
- Flink window & time principle
- Chapter 2-14 sum integer segments
- NPM and yarn use (official website, installation, command line, uploading your own package, detailed explanation of package version number, updating and uninstalling package, viewing all versions, equ
- 剑指offer
- Bluetooth technology | it is reported that apple, meta and other manufacturers will promote new wearable devices, and Bluetooth will help the development of intelligent wearable devices
猜你喜欢

NDK series (6): let's talk about the way and time to register JNI functions

1299_ Task status and switching test in FreeRTOS

Smartbi of smart smart smart software completed the c-round financing and accelerated the domestic Bi into the intelligent era

I am a 27 year old technical manager, whose income is too high, and my heart is in a panic

linux初始化mysql时报错 FATAL ERROR: Could not find my-default.cnf

Round C financing has been completed! Smart software leads domestic Bi ecological empowerment, and products and services are a step forward

Warehouse of multiple backbone versions of yolov5

C language array pointer and pointer array discrimination, analysis of memory leakage

Data fabric, next air outlet?

Go panic and recover
随机推荐
Prometheus TSDB analysis
Completion report of communication software development and Application
Go panic and recover
JSON 文件存储
What are the main uses of digital factory management system
You're not still using xshell, are you? This open source terminal tool is yyds!
Post it notes -- 45 {packaging of the uniapp component picker, for data transmission and processing -- Based on the from custom packaging that will be released later}
No one wants to tell the truth about kubernetes secret
C#简单调用FMU ,进行仿真计算
[activity registration] User Group Xi'an - empowering enterprise growth with modern data architecture
公众号简介
Hundreds of billions of it operation and maintenance market has come to the era of speaking by "effect"
Dry goods semantic web, Web3.0, Web3, metauniverse, these concepts are still confused? (top)
DAPP safety summary and typical safety incident analysis
Network interface network crystal head RJ45, Poe interface definition line sequence
关闭页面时向后台发送消息
Kubernetes data persistence scheme
After summarizing more than 800 kubectl aliases, I'm no longer afraid that I can't remember commands!
When I use MySQL CDC, there are 100 million pieces of data in the source table. In the full volume phase, when I synchronize 10 million, I stop, and then pass
There is a bug in installing CONDA environment