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/
< zoq> luffy1996: I'm not sure I get the jacobian matrix part.
govg has quit [Ping timeout: 260 seconds]
csoni has joined #mlpack
ricklly_ has joined #mlpack
robertohueso has left #mlpack []
csoni has quit [Ping timeout: 263 seconds]
csoni has joined #mlpack
csoni has quit [Read error: Connection reset by peer]
luffy1996 has joined #mlpack
< luffy1996> template<typename InputDataType, typename OutputDataType>
< luffy1996> template<typename InputType, typename OutputType>
< luffy1996> void Softmax<InputDataType, OutputDataType>::Forward(
< luffy1996> const InputType&& input, OutputType&& output)
< luffy1996> {
< luffy1996> // This is how I am computing forward pass for softmax layer on mlpack
< luffy1996> arma::mat maxInput = arma::repmat(arma::max(input), input.n_rows, 1);
< luffy1996> arma::mat expInput = arma::exp(maxInput - input);
< luffy1996> // We will normalize the values to get probability.
< luffy1996> double sumExpInput = arma::sum(expInput);
< luffy1996> output = expInput/sumExpInput;
< luffy1996> }
< luffy1996> zoq : Please go throught the snippet. The about code wasn't sent successfully because of flooding
< luffy1996> @zoq, I want a softmax layer to be implemented which should work with categorical crossentropy. I want to send a one hot bit vector at the time of back propagation. Would you please help me in implementing this
csoni has joined #mlpack
csoni has quit [Read error: Connection reset by peer]
ImQ009 has joined #mlpack
csoni has joined #mlpack
csoni has quit [Read error: Connection reset by peer]
csoni has joined #mlpack
csoni has quit [Ping timeout: 264 seconds]
ImQ009 has quit [Ping timeout: 268 seconds]
ImQ009 has joined #mlpack
witness has joined #mlpack
govg has joined #mlpack
manthan has joined #mlpack
manthan has quit [Ping timeout: 260 seconds]
luffy1996 has quit [Quit: Connection closed for inactivity]
sulan_ has joined #mlpack
witness has quit [Quit: Connection closed for inactivity]
ricklly_ has quit [Quit: Konversation terminated!]
witness has joined #mlpack
ricklly has joined #mlpack
dmatt has joined #mlpack
< dmatt> .
ricklly has quit [Remote host closed the connection]
dmatt_ has joined #mlpack
dmatt has quit [Ping timeout: 260 seconds]
dmatt_ has quit [Remote host closed the connection]
witness has quit [Quit: Connection closed for inactivity]
< zoq> luffy1996: For the backward path compute the derivative, see https://github.com/mlpack/mlpack/blob/master/src/mlpack/methods/ann/activation_functions/logistic_function.hpp for an example. Once we have the derivate we can implement it as a sperate layer or use the base layer.
petris has quit [Remote host closed the connection]
petris has joined #mlpack
witness has joined #mlpack
Atharva has joined #mlpack
< Atharva> zoq: Please look at the input/output PR when you get time. If the approach is okay then I will proceed and the required constructors for the other layers.
witness has quit [Quit: Connection closed for inactivity]
ImQ009 has quit [Quit: Leaving]
Atharva has quit [Quit: Connection closed for inactivity]
sulan_ has quit [Quit: Leaving]