Why Neural Network Output is different every time???

 Respuesta aceptada

Greg Heath
Greg Heath el 15 de Abr. de 2015
Initial weights and data division are random unless you initialize the random number generator to the same state before training.

3 comentarios

M J
M J el 16 de Jul. de 2020
Editada: M J el 16 de Jul. de 2020
Hi, would using something like :
rng(0,'combRecursive');
right before training the CNN work ?
Thanks a lot !
Greg Heath
Greg Heath el 17 de Jul. de 2020
I just use
close all, clear all, rng(0)
as the 1st line of my code.
Hope this helps
Greg
M J
M J el 17 de Jul. de 2020
Editada: M J el 17 de Jul. de 2020
Thanks a lot for the answer. The thing is that I intend to randomly shuffle my data as part of the training process, and compare validation accuracies associated with different training/validation combinations. Wouldn't that (writing it as the 1st line of the code) affect the random shuffling part too?
Best.

Iniciar sesión para comentar.

Más respuestas (1)

SIDDHARAM GADDI
SIDDHARAM GADDI el 16 de Abr. de 2015

3 votos

just simply paste this code before traning the data..
rng('default');
You will get same result every time....

Categorías

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

Etiquetas

Preguntada:

el 15 de Abr. de 2015

Comentada:

el 5 de Nov. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by