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

Stage block 2D choice #14

Open
johanneswieland opened this issue Jan 19, 2023 · 2 comments
Open

Stage block 2D choice #14

johanneswieland opened this issue Jan 19, 2023 · 2 comments

Comments

@johanneswieland
Copy link

I know the stage block code is still experimental, but I wanted to flag this issue if it has not come up yet.

The function inputs in line 115 of law_of_motion.py do not correspond to the required inputs for forward_policy_shock_2d. Executing this line throws the error 'ShockedPolicyLottery2D' object has no attribute 'i' since the object only has attributes that look like i1 and i2.

class ShockedPolicyLottery2D(PolicyLottery2D):
def __matmul__(self, X):
if self.forward:
return het_compiled.forward_policy_shock_2d(X.reshape(self.flatshape), self.i, self.pi).reshape(self.shape)
else:
raise NotImplementedError

@bbardoczy
Copy link
Collaborator

Thanks for pointing this out, Johannes. We're planning to introduce some refinements of stage blocks soon, as well as addressing some of the issues raised by the community.

@johanneswieland
Copy link
Author

johanneswieland commented Jan 20, 2023 via email

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

2 participants