Answer the question
In order to leave comments, you need to log in
How is the data converted from real to binary before training the neural network?
How to transform real data so that it is suitable for perceptron training?
The perceptron can only take on the values 1 and 0.
Answer the question
In order to leave comments, you need to log in
So what is the data? Text, image, sounds, tank, dog?
If the image, then you can do this:
with open('image.jpg', 'br') as f:
for chunk in iter(lambda: f.read(8), b''):
print(''.join([f'{byte:08b}' for byte in chunk ]))
The perceptron can only take on the values 1 and 0
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question