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

AttributeError: module 'neural_diffusion_processes.sde' has no attribute 'conditional_sample2' #2

Open
adam-hartshorne opened this issue Jul 24, 2023 · 0 comments

Comments

@adam-hartshorne
Copy link

adam-hartshorne commented Jul 24, 2023

When attempting to run gaussian-process-interpolation example, I get the following error. It appears that conditional_sample2 is defined in sde_with_mask.py not sde.py

Traceback (most recent call last):
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/notebooks/gaussian-process-interpolation.py", line 336, in <module>
    ys, ys_steered = steer(I), steer(R)
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/notebooks/gaussian-process-interpolation.py", line 332, in steer
    return jax.jit(
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/notebooks/gaussian-process-interpolation.py", line 333, in <lambda>
    jax.vmap(lambda key: conditional_sample(x_known - shift, y_known, x_test - shift, key=key))
  File "/media/adam/shared_drive/PycharmProjects/neural_diffusion_processes-main/notebooks/gaussian-process-interpolation.py", line 309, in <lambda>
    lambda x, y, x_eval, key: ndp.sde.conditional_sample2(
AttributeError: module 'neural_diffusion_processes.sde' has no attribute 'conditional_sample2'

If you do import this function correctly, it results in the following error

TypeError: conditional_sample2() missing 2 required keyword-only arguments: 'mask_context' and 'mask_test'

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