LSTM to forecast numerical data by having categorical data as input
问题 I have a similar DataFrame : df = pd.DataFrame([ {'date':'2021-01-15', 'value':145, 'label':'negative'}, {'date':'2021-01-16', 'value':144, 'label':'positive'}, {'date':'2021-01-17', 'value':147, 'label':'positive'}, {'date':'2021-01-18', 'value':146, 'label':'negative'}, {'date':'2021-01-19', 'value':155, 'label':'negative'}, {'date':'2021-01-20', 'value':157, 'label':'positive'}, {'date':'2021-01-21', 'value':158, 'label':'positive'}, {'date':'2021-01-22', 'value':157, 'label':'negative'},