A
A
Atlant772018-05-13 21:13:21
Neural networks
Atlant77, 2018-05-13 21:13:21

Neural network, how to normalize data such as time?

Hello, please tell me how to normalize enum type data, let's say time or colors, when there are many options, 24 hours a day, or 60 minutes an hour, etc.
In one article it was said that when there are enumerations, then you can issue them as several parameters, i.e. let's say day or night, then we pass 2 parameters day and night and pass 0 and 1 or 1 and 0, but here, as I have already written, there are much more options.
Who can say anything about this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lander, 2018-05-13
@usdglander

In binary form, wouldn't it work?
Like 12 minutes = 1100 minutes

A
Arseny Kravchenko, 2018-05-14
@Arseny_Info

Projection onto a circle, for example.

def make_harmonic_features(value, period=24):
    value *= 2 * np.pi / period 
    return np.cos(value), np.sin(value)

https://medium.com/open-machine-learning-course/op...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question