mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:43:08 +02:00
19 lines
657 B
Python
19 lines
657 B
Python
|
|
import tensorflow as tf
|
||
|
|
|
||
|
|
import numpy as np # advanced math library
|
||
|
|
import matplotlib.pyplot as plt # MATLAB like plotting routines
|
||
|
|
import random # for generating random numbers
|
||
|
|
|
||
|
|
from keras.datasets import mnist # MNIST dataset is included in Keras%
|
||
|
|
from keras.models import Sequential # Model type to be used
|
||
|
|
|
||
|
|
from keras.layers import Dense, Dropout, Activation # Types of layers to be used in our model
|
||
|
|
from keras.utils import to_categorical # NumPy related tools
|
||
|
|
|
||
|
|
from keras import optimizers
|
||
|
|
|
||
|
|
|
||
|
|
from sklearn.metrics import confusion_matrix
|
||
|
|
import itertools
|
||
|
|
|
||
|
|
print(tf.__version__)
|