Code Monkey home page Code Monkey logo

neural-diffusion-processes's People

Contributors

vdutor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

neural-diffusion-processes's Issues

You may need to correct poetry.lock

HI,
When I tried to install this repo regression test, I couldn't test with gpu.
You may need to change the poetry.lock file like this
dm-haiku==0.0.9 -> dm-haiku==0.0.10

Generate Data Problem

Hi,
thank you for your repository and contributions.
I am trying to generate a dataset using regression/generate_data.py
and I encountered an error on line 102.

image

#####################################
File "/home/coldyoung/neural-diffusion-processes/experiments/regression/generate_data.py", line 30, in
batch = jitted_get_batch(bkey)
File "/home/coldyoung/neural-diffusion-processes/experiments/regression/generate_data.py", line 25, in
jitted_get_batch = jax.jit(lambda k: get_batch(k, batch_size=BATCH_SIZE, name=dataset, task=task, input_dim=input_dim))
File "/home/coldyoung/neural-diffusion-processes/experiments/regression/data.py", line 251, in get_batch
y = jax.vmap(sample_func)(keys, x)
File "/home/coldyoung/neural-diffusion-processes/experiments/regression/data.py", line 113, in sample
f = self.prior.predict(self.params)(x).sample(seed=key, sample_shape=()).reshape(x.shape[0], 1)
File "/home/coldyoung/anaconda3/envs/dpn/lib/python3.9/site-packages/gpjax/gps.py", line 221, in predict
mx = self.mean_function(x)
File "/home/coldyoung/anaconda3/envs/dpn/lib/python3.9/site-packages/gpjax/mean_functions.py", line 151, in call
return jnp.ones((x.shape[0], 1)) * self.constant
AttributeError: 'dict' object has no attribute 'shape'
#####################################
I am unable to determine why this code is using self.params as input in the predict function.

Would you be able to make the necessary changes to the code?
The GPjax library's predict function only accepts array types and not dictionaries.

Could you please resolve this issue?
Thank you.

Dependencies problems

Hi, I encountered problems with dependencies trying to run the code. Initially I tried to follow the instructions in the README.md
with poetry, the result running the main.py file in regression folder with this command (python main.py --config.dataset=se --config.input_dim=1 --config.restore=trained_models/May26_014440_rcva/) was an error due to conflicts with gpjax (version 0.6.0 and 0.5.9).
I have also tried to download the requirements in requirements_Sept2023.txt with the pip install -r command but so many conflicts emerged.
Please help, I'd like to contribute to the research topic.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.