Tensorflow introduction and practice (basic knowledge)-multilayer perceptron implementation code softmax

table of Contents

1 Theoretical knowledge

2 Data set

2.1 Fasihion MNIST datasets

3 Code practice

3.1 introduction of packets

3.2 Implementation code:

3.2.1 Digital coding

When training parameters

3.2.2 Hot coding


1 Theoretical knowledge

2 Data set

2.1 Fasihion MNIST data set

Take a look at the data set

3 Code practice

3.1 The introduction of data packets

3.2 Implementation code:

3.2.1 Digital coding

When training parameters

  • categorical_crossentropy when reading hot encoding

  • sparse_categorical_crossentropy 0,1,2,3 digitally encoded words used

3.2.2 Hot coding

Data Format:

Guess you like

Origin blog.csdn.net/qq_37457202/article/details/107758523