neural/test.py
2024-06-13 23:28:24 +03:00

15 lines
459 B
Python

import numpy as np
import matplotlib.pyplot as ml
# with open("/home/test/PycharmProjects/NN/train_100.csv", 'r') as f:
# content = f.readlines()
# print(content[0])
# # print(len(content))
#
# all_val = content[1].split(',')
# # image_arr = np.asfarray(all_val[1:]).reshape((28, 28))
# # ml.imshow(image_arr, cmap='Greys', interpolation='None')
# # ml.show()
# scaled_input = (np.asfarray(all_val[1:])/255.0 * 0.99) + 0.01
# print(scaled_input)