Giter VIP home page Giter VIP logo

dgpg's People

Contributors

naiqili avatar

Stargazers

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

Watchers

 avatar

dgpg's Issues

What input should be used to DGPG and predict_y?

Hello!

I am interesting in using DGPG for predicting a graph signal.
I have read the examples and jupyter notebooks and tried to use DGPG with my dataset but I am not able to get the input shapes correct.

My input is a graph with 31 nodes and 7 attributes per node. Considering 10 samples of data my input is trX in 10x31x7.
Then I use 5 inducing points, a batch size of 1 and as number of samples I use the 10 (since it is my number of data samples)
The output training is one attribute of the signal on the graph, therefore trY in 10x 31 x 1.

I tried doing the following:

m_dgpg = DGPG(trX, trY, Z, input_dims=[7], likelihood=Gaussian(), adj=gmat0,
                      agg_op_name='concat3d', ARD=True,
                      is_Z_forward=True, mean_trainable=False, out_mf0=True,
                      num_samples=10, minibatch_size=1,
                      kern_type='RBF'
                      )

The training worked fine.
However when performing predictions this gave me an error of Incompatible shapes.
My input for performing a prediction was 1x31x7

According to the documentation of DGPG the input shape should be:

""": param X: (s1, n, d_in)
:param Y: (s1, n, d_out)
:param Z: (s2, n, d_in) """

On the paper it is written that the input is modified so that the features are concatenated.
From that I understand that I should concatenate the 7 attributes and get an input X of 10x217.
I also tried this using as input_dims=[1] and I got the error
Incompatible shapes: [31,10,217] vs. [31,1,31]

Could you please explain what is the right input to be used for training DGPG and predict_y?

Many thanks!

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.