docs: public void pretrain(DataSetIterator iter, int numEpochs){
          if (flattenedGradients == null) {
              initGradientsView();
          }
  
          for (int i = 0; i < getnLayers(); i++) {
              pretrainLayer(i, iter, numEpochs);
          }
      }