1 year ago

#373455

test-img

display_name

XGBoost input data dimension

I am working on time series. I have collected data having 10 different channels and put them in a pandas.DataFrame. I have a pandas.DataFrame of 10 columns (per channel) and 10 rows (per value). I have only one label for this data frame. It is a binary number.

Ex.: For a data frame of 10 columns and 10 rows, the label that I have is "0".

The problem is that I cannot use .fit in XGBoost having these inputs. I am having this error: "IndexError: tuple index out of range".

So far I have tried putting the binary label in a list, although it is non-sense. I also thought about using interpolation on this binary label so that it has the same dimension as my input, which is also non-sense because this label is representing the ensemble of my training data, not one row / column of the data.

I would like to be able to use .fit() on my model using the parameters having correct dimension. Any thoughts how I can resolve this?

Thank you in advance.

python

pandas

dataframe

xgboost

data-fitting

0 Answers

Your Answer

Accepted video resources