darts icon indicating copy to clipboard operation
darts copied to clipboard

[Question] Extract training data and target from a model at timestep t

Open nkonts opened this issue 10 months ago • 1 comments

Hi,

I am currently exploring your library and working through some example notebooks. To gain more confidence in what is happening under the hood, is there a possiblity to extract the X and y similar to what is shown as resulting arrays in the Lagged data extraction image from the Regression Models example?

I was not able to find a way while going through your API reference or inspecting the attributes of the LinearRegressionModel object.

nkonts avatar Apr 16 '24 13:04 nkonts

Hi @nkonts,

The RegressionModel._create_lagged_data() method is responsible for creating the X and y arrays. Under the hood, it calls create_lagged_training_data() from the tabularization module (doc).

I hope that it solves your problem.

madtoinou avatar Apr 17 '24 06:04 madtoinou