Machine learning that predicted the class by time data [closed]

I’ve been trying to make a ML that predicte classes by the time given.

I got a sample panda dataframe and feed the algorithm and it did a good job in the scores.

But the problem is I can’t use it couse in the inputs i cant enter the time. I get ValueError
The machine wants me to enter a float not a datetime.datetime type of input

I tried to get My input with dateutil library and parser function.
but it saves almost all the date. I mean i just want the time (12:34).
I format it by the time.strftime(‘%H:%M’)
But it return a string and machine can not use it.
I want to know how can i give my algorithm the X I mean my input to get predicted

Leave a Comment