public void clearLayersStates ( ) { for ( Layer layer : layers ) { layer . clear ( ) ; layer . clearNoiseWeightParams ( ) ; } for ( GraphVertex vertex : vertices ) { vertex . clearVertex ( ) ; } }
This method just makes sure there s no state preserved within layers