Hi everyone,
this is my first post here - so please be patient!
I am starting playing with fastai. I need some help if you please.
I have a time series with date-time, temperature and Humidity from 2015 to 2023. The time step its every 20 min. It looks like:
date-Time Temperature Humidity
16/9/2018 4:30 15.9 100
16/9/2018 4:50 15.8 100
I made this quick code reading the book.
import pandas as pd
from fastai.tabular.all import *
df = pd.read_csv(‘AgSpiridon_short.csv’)
dls = TabularDataLoaders.from_csv(‘AgSpiridon_short.csv’,
y_names=“Temperature”,
cat_names = [‘date-Time’],
cont_names = [‘Humidity’],
procs = [Categorify, FillMissing, Normalize] )
learn = tabular_learner(dls, metrics=accuracy)
learn.fit_one_cycle(3)
my questions.
- Is it proper to deal time-date values with this format as cat_names ?
- My model its a failure - accuracy 0.00065
- Do i have to make a train dataframe ? or fastai can train the model with this simple code?
thanks
Chris