-
Notifications
You must be signed in to change notification settings - Fork 33
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
Dynamically write specialized state space functions. #222
Labels
Comments
The runtime for creating a state space significantly dropped due to #310. Still valid, but less urgent. |
Probably wait until Numba supports |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current State
respy currently has a very flexible
_create_state_space
function which can scale to any number of choices with experiences and wages, types and choices without experience and without wages. Soon, it will also include observed variables which enter the state space. The only problem is that the function is slow. The setup cost is mostly incurred only once, but it takes 66s for Keane1997.Proposal
The former jitted functions are a lot faster. It takes only 13s for KW1997. But, they are inflexible.
Thus, the task is to write a function which writes specialized Numba functions similar to the function in
respy.tests._former_code
when a solution is requested based on everything contained in options and params. The resultingcreate_state_space
function will then be imported and executed to get the state space and indexer.The text was updated successfully, but these errors were encountered: