code: public synchronized void fit(INDArray features, INDArray labels, INDArray featuresMask, INDArray labelsMask) {
          try{
              fitHelper(features, labels, featuresMask, labelsMask);
          } catch (OutOfMemoryError e){
              CrashReportingUtil.writeMemoryCrashDump(this, e);
              throw e;
          }
      }
docs: Fit the model for one iteration on the provided data
  
  @param features   the examples to classify (one example in each row)
  @param labels the example labels(a binary outcome matrix)
  @param featuresMask The mask array for the features (used for variable length time series, etc). May be null.
  @param labelsMask The mask array for the labels (used for variable length time series, etc). May be null.