N
N
nameOfUser 1232019-06-15 20:41:08
Python
nameOfUser 123, 2019-06-15 20:41:08

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

2 answer(s)
I
Ivan Yakushenko, 2019-06-15
@kshnkvn

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

A
Arseny Kravchenko, 2019-06-16
@Arseny_Info

The perceptron can only take on the values ​​1 and 0

this is not true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question