WUT_Computer_Science/Programming/twm_4/twm.py
2026-02-06 22:15:03 +01:00

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__)