I am trying to predict flight
take off delay using my current dataset. At this point of time, I only have four dimensions.
when I try to predict
actual_time_departure(B) using scikit linear regression model using (
day_of_week) on x-axis, I am getting good
However when I am trying to predict
take_off_delay (which is actually difference between
scheduled_time_departure), in that case I am getting negative
- to convert
integerI am using
actual_time_departureare in seconds not a timestamp, that is second of day, 86400 is max value it can have.
- I even tried doing
- I have ensured that
take_off_delayis always positive.
- For the case when I was predicting
actual_time_departure, I tried using
one hot encoderbut that agravated
P.S: I am new to machine learning and data science, let me know if I am making dumb mistake :) P.P.S: I understand model can be worst if r2 score is negative, however I want to understand the reason.