-
Notifications
You must be signed in to change notification settings - Fork 0
rogerjs93/AI-python-test
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This code uses the MNIST dataset, which contains images of handwritten digits and their corresponding labels. The neural network is trained on this dataset to classify the images into their corresponding digits (0-9). The code first loads the dataset and normalizes the pixel values. It then defines the neural network architecture, which consists of a flatten layer to convert the input images into a 1D array, a dense layer with 128 neurons and ReLU activation function, and a dense output layer with 10 neurons and softmax activation function. The model is compiled with the Adam optimizer and sparse categorical cross-entropy loss function. The model is then trained on the training data for 5 epochs. Finally, the model is evaluated on the test data, and the accuracy is printed out.
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published