spectral-lib icon indicating copy to clipboard operation
spectral-lib copied to clipboard

testing

Open gravity1989 opened this issue 9 years ago • 5 comments

So I managed to train using the cifar dataset.

How do i test the model using the test dataset?

gravity1989 avatar Mar 29 '16 05:03 gravity1989

Hi Rahul,

The test performance is computed line 69 of test/train.lua. The computePerf function takes in a split ('train' or 'test') and computes performance of the model on that split.

-Mikael

On Tue, Mar 29, 2016 at 1:52 AM, Rahul V [email protected] wrote:

So I managed to train using the cifar dataset.

How do i test the model using the test dataest?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/mbhenaff/spectral-lib/issues/6

mbhenaff avatar Mar 30 '16 01:03 mbhenaff

Thanks Mikael.

On Wed, Mar 30, 2016 at 7:10 AM, mbhenaff [email protected] wrote:

Hi Rahul,

The test performance is computed line 69 of test/train.lua. The computePerf function takes in a split ('train' or 'test') and computes performance of the model on that split.

-Mikael

On Tue, Mar 29, 2016 at 1:52 AM, Rahul V [email protected] wrote:

So I managed to train using the cifar dataset.

How do i test the model using the test dataest?

— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/mbhenaff/spectral-lib/issues/6

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/mbhenaff/spectral-lib/issues/6#issuecomment-203185327

Regards, R.V.

gravity1989 avatar Mar 30 '16 03:03 gravity1989

@gravity1989 I have a question. Is the Laplacian matrix obtained from all the training data and fixed during training? If a single sample is a graph structured data(say represented as a weighted matrix), how should I do?

wangg12 avatar Apr 01 '16 07:04 wangg12

I am not sure if its fixed or otherwise. I have just about managed to runt he code.

The .mat file is loaded and modifications could be happening which is invisible to me.

On Fri, Apr 1, 2016 at 1:02 PM, Wang Gu [email protected] wrote:

@gravity1989 https://github.com/gravity1989 I have a question. Is the Laplacian matrix obtained from all the training data and fixed during training? If a single sample is a graph structured data(say represented as a weighted matrix), how should I do?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub https://github.com/mbhenaff/spectral-lib/issues/6#issuecomment-204290660

Regards, R.V.

gravity1989 avatar Apr 01 '16 07:04 gravity1989

Yes, the Laplacian matrix is fixed during training. It is first estimated from the training data, and then its eigenvectors are used to define a Graph Fourier Transform which is a generalization of the regular Fourier transform. Pointwise multiplication in this new "frequency" space corresponds to a convolution on the graph.

On Fri, Apr 1, 2016 at 3:38 AM, Rahul V [email protected] wrote:

I am not sure if its fixed or otherwise. I have just about managed to runt he code.

The .mat file is loaded and modifications could be happening which is invisible to me.

On Fri, Apr 1, 2016 at 1:02 PM, Wang Gu [email protected] wrote:

@gravity1989 https://github.com/gravity1989 I have a question. Is the Laplacian matrix obtained from all the training data and fixed during training? If a single sample is a graph structured data(say represented as a weighted matrix), how should I do?

— You are receiving this because you were mentioned. Reply to this email directly or view it on GitHub < https://github.com/mbhenaff/spectral-lib/issues/6#issuecomment-204290660>

Regards, R.V.

— You are receiving this because you commented. Reply to this email directly or view it on GitHub https://github.com/mbhenaff/spectral-lib/issues/6#issuecomment-204292418

mbhenaff avatar Apr 03 '16 04:04 mbhenaff