verne.freenode.net changed the topic of #mlpack to: http://www.mlpack.org/ -- We don't respond instantly... but we will respond. Give it a few minutes. Or hours. -- Channel logs: http://www.mlpack.org/irc/
kris1 has quit [Quit: kris1]
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
govg has joined #mlpack
< lozhnikov> kris1: which test do you mean? Could you upload that? I tried to compile this test (https://gist.github.com/kris-singh/9420d3e9a0afe12099826dd98222dce7) but the build failed. So, it seems we use different versions. Could you upload the latest code?
kris_ has joined #mlpack
vivekp has quit [Ping timeout: 276 seconds]
vivekp has joined #mlpack
< lozhnikov> kris1: It seems the shape of the input is incorrect in the second convolution layer of the generator
< lozhnikov> try to use the following:
< lozhnikov> generator.Add<Convolution<>>(gInputDim / 2, gInputDim / 4, 3, 3, 2, 2, 1, 1, 28, 28);
< lozhnikov> i.e. replace 56 by 28
kris_ has quit [Quit: Connection closed for inactivity]
vivekp has quit [Ping timeout: 246 seconds]
vivekp has joined #mlpack
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
partobs-mdp has joined #mlpack
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
partobs-mdp has quit [Remote host closed the connection]
vivekp has quit [Ping timeout: 240 seconds]
vivekp has joined #mlpack
kris1 has joined #mlpack
< kris1> Hi lozhnikov i just came home…..I have pushed the changes…. have look…… Here is the evaluation file that was giving me undefined behaviour at times.
< lozhnikov> kris1: I have already found the issue
< lozhnikov> It seems the shape of the input is incorrect in the second convolution layer of the generator
< lozhnikov> try to use the following:
< lozhnikov> generator.Add<Convolution<>>(gInputDim / 2, gInputDim / 4, 3, 3, 2, 2, 1, 1, 28, 28);
< lozhnikov> i.e. replace 56 by 28
kris1 has quit [Quit: kris1]
vss has joined #mlpack
vss has left #mlpack []
vss has joined #mlpack
mikeling is now known as mikeling|brb
vss has quit [Quit: leaving]
kartik_ has joined #mlpack
< kartik_> hi <zoq> why does that happen that.. when the vanilla network has labels named as 0 1 2 for 3 output layer nodes
< kartik_> matrix build error occurs
< kartik_> but for 1 2 3 as nomenclature for output nodes
< kartik_> it runs fine
< kartik_> <zoq> iris dataset is working fine and also converging very fast
< kartik_> after i change the labels to the above names
< zoq> kartik_: hm, not sure right now
< zoq> kartik_: build error or assertion?
< kartik_> for the iris dataset
< kartik_> all i do is 4 input 4 hidden and 3 output
< kartik_> then on the training labels marked by 0/1/2
< zoq> What is the actual error you see?
< kartik_> i just add one to everything 1/2/3
< kartik_> and now the network works fine
< kartik_> error: Mat::operator(): index out of bounds terminate called after throwing an instance of 'std::logic_error' what(): Mat::operator(): index out of bounds Aborted (core dumped)
< zoq> kartik_: Can you use MeanSquaredError instead of NegativeLogLikelihood and test again?
< kartik_> <zoq> but its working fine and the run time has got significantly low
< zoq> kartik_: Sounds good, we should still see if we can figure out what the actual problem is.
< kartik_> error: subtraction: incompatible matrix dimensions: 3x1 and 1x1 terminate called after throwing an instance of 'std::logic_error' what(): subtraction: incompatible matrix dimensions: 3x1 and 1x1 Aborted (core dumped)
< kartik_> this is the new error i get
< kartik_> <zoq> here is the code https://ghostbin.com/paste/ueesx
< zoq> I see, the problem here is that if you use the MeanSquaredError layer the label size has to match with the output layer size, in yur case the label size is 1 and the network outout size is 3
< kartik_> with mean square error .. even uncommenting line 25 and 29 gives error which works fine in negativelikelihood
< zoq> kartik_: You need to preprocess the labels first something like: https://gist.github.com/zoq/0f1651780edeec49391b1bfb1ae46532
< kartik_> <zoq> this works fine for me.
< kartik_> should i use the MSE layer
< kartik_> or this will do for the test case
< zoq> hm, the + 1 is strange, I'll see if I can figure out what happend here, I guess if the MSE layer works the problem is the NLL layer.
< kartik_> ohkay.. thanks :)
vivekp has quit [Ping timeout: 276 seconds]
vivekp has joined #mlpack
kartik_ has quit [Ping timeout: 260 seconds]
mikeling|brb has quit [Quit: Connection closed for inactivity]
vivekp has quit [Ping timeout: 246 seconds]
vivekp has joined #mlpack
vivekp has quit [Ping timeout: 276 seconds]
vivekp has joined #mlpack
bvr has quit [Ping timeout: 255 seconds]
vivekp has quit [Ping timeout: 260 seconds]
vivekp has joined #mlpack
vivekp has quit [Ping timeout: 248 seconds]
vivekp has joined #mlpack