当前位置:网站首页>Tensorflow uses deep learning (II)
Tensorflow uses deep learning (II)
2022-07-28 07:52:00 【MioeC】
explain
- Penalty factor

kernel_regularizer = tf.keras.regularizers.L2(
l2=0.01, **kwargs
)
Refer to the official website api
- Random initialization parameters

kernel_initializer="random_normal",
# Building neural network
checkpoint_path = "training/cp.ckpt"
model = keras.Sequential([
keras.layers.Conv2D(64, (3, 3), 1, padding='same', activation="relu",kernel_initializer="random_normal", input_shape = (32, 32, 1),kernel_regularizer='l2'),
keras.layers.MaxPool2D(2, 2),
keras.layers.Conv2D(128, (3, 3), 1, activation='relu', kernel_regularizer='l2'),
keras.layers.MaxPool2D(2, 2),
keras.layers.Flatten(),
keras.layers.Dense(256, activation='relu'),
keras.layers.Dense(40, activation='softmax')
])
model.compile(optimizer='adam', loss = keras.losses.categorical_crossentropy, metrics=['acc'])
model.summary()
# model.load_weights(checkpoint_path)
边栏推荐
- EMC之 “不整改好别回来了”
- 任务管理器中,显示的CPU速度大于它的最大速度【主频】
- DNA modified noble metal nanoparticles | DNA deoxyribonucleic acid modified metal palladium Pd nanoparticles pdnps DNA
- DNA modified rhodium RH nanoparticles rhnps DNA (DNA modified noble metal nanoparticles)
- EMC design strategy - clock
- Synthesis of dna-ag2sqds DNA modified silver sulfide Ag2S quantum dots
- ArcGIS JS 地图内外网环境判断问题
- Mysql中有哪些不同的表格?
- DNA modified noble metal nanoparticles | DNA modified copper nanoparticles cunps-dna | research points
- 非关系型数据库之Redis【Jedis客户端+Jedis连接集群】
猜你喜欢

After learning the four redis cluster solutions at one go, each has its own merits
C language explanation series - array explanation, one-dimensional array, two-dimensional array
![[JVM optimization ultra detailed] common JVM tuning scenarios](/img/dd/3fed0b2bb6f00e5719982e38495e5c.jpg)
[JVM optimization ultra detailed] common JVM tuning scenarios

node(一)

DNA cuinseqds near infrared CuInSe quantum dots wrapped deoxyribonucleic acid DNA

磁环选型攻略及EMC整改技巧

EMC问题的根源在哪?

谈谈DOM0,DOM1,DOM2,DOM3

【干货】32个EMC标准电路分享!

(每日一题)——最长不含重复字符的子字符串
随机推荐
Mysql查看某个表所占内存大小
项目经历总结
辨析覆盖索引/索引覆盖/三星索引
RFID辐射测试小结
Guava cache of guava
Introduction to magnetic ring selection and EMC rectification skills
深度学习基础宝典---激活函数、Batch Size、归一化
And is two numbers of S - two questions per day
5g commercial third year: driverless "going up the mountain" and "going to the sea"
EMC整改方法集合
Learn software testing in two weeks? I was shocked!
DNA-Ag2SQDs脱氧核糖核酸DNA修饰硫化银Ag2S量子点的合成方法
Industry standards and certification of common electronic products
牛客Mysql——SQL必知必会
YOLO系列损失函数详解
Don't be afraid of ESD static electricity. This article tells you some solutions
Method of hiding scroll bar in wechat applet
Niuke MySQL - SQL must know and know
Analysis of collector principle
ArcGIS JS自定义Accessor,并通过watchUtils相关方法watch属性