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

have return=='all' inside base predict #29

Closed
sdtaylor opened this issue Feb 10, 2020 · 2 comments
Closed

have return=='all' inside base predict #29

sdtaylor opened this issue Feb 10, 2020 · 2 comments

Comments

@sdtaylor
Copy link
Owner

Need to be able to get all state variables out of a model like W and Dt.

Hopefully someway to do it automatically.

maybe

model.state_variables = ['Dt','W','V'] etc.

@sdtaylor
Copy link
Owner Author

inside predict()

model_predictions = self.apply_model(blah blah, return='all')
state_vars = {v:model_predictions[i] for f,i in self.state_variables}
if state_vars_to_return = 'all':
    return state_vars
else:
    return state_vars[state_vars_to_return]

or something like that...

@sdtaylor
Copy link
Owner Author

#30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant