Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nkonts opened this issue Apr 16, 2024 · 1 comment
Open
Labels
question Further information is requested

Comments

@nkonts
Copy link

nkonts commented Apr 16, 2024

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.

@madtoinou
Copy link
Collaborator

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 madtoinou added the question Further information is requested label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants