I recently used Neural Network toolbox from Matlab to train a neural network for detecting violence in movies. After training the network and obtaining a good performance I've been searching for the function that let me use the network and I can't find it. Can you help me on using the network after training it?
PS: I just want to try the network giving one input and getting an output

1 comentario

Sandeep Arora
Sandeep Arora el 30 de Dic. de 2017
Dude, can I ask a question not related to this. How did you get the network or your script to read the screen, let alone detect violence for your data. What I need specifically is to open up a game saved on my desktop and let my neural network train on it, could you please help?

Iniciar sesión para comentar.

 Respuesta aceptada

Sean de Wolski
Sean de Wolski el 5 de En. de 2016
Editada: Sean de Wolski el 5 de En. de 2016
y = net(x)
where net is your trained network and x is your new input.

3 comentarios

Luís Dias
Luís Dias el 6 de En. de 2016
Editada: Luís Dias el 6 de En. de 2016
I tried that but when I do so, I was expeting a 2x1 matrix with the output for each class but instead I receive a 2x36 matrix where 36 is exacly the same number of each input attributes.
Can you show me a code example, inputs and outputs where that works out?
Better yet, what are the sizes of the matrices you used for training
[ I N ] = size(input)
[ O N ] = size(target)
Then, for each I-dimensional column input test vector, x, you should get an O-dimensional column output vector y.
Luís Dias
Luís Dias el 8 de En. de 2016
I did it! I had to traspose one of the matrixes! Thanks man

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 5 de En. de 2016

Comentada:

el 30 de Dic. de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by