mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 12:43:04 +02:00
git-subtree-dir: Programming/twm_4 git-subtree-mainline:f497629ab7git-subtree-split:1ae0cf4d68
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__) |