code: public AutoEncoderModelPrediction predictAutoEncoder(RowData data) throws PredictException {
      validateModelCategory(ModelCategory.AutoEncoder);
  
      int size = m.getPredsSize(ModelCategory.AutoEncoder);
      double[] output = new double[size];
      double[] rawData = nanArray(m.nfeatures());
      rawData = fillRawData(data, rawData);
      output = m.score0(rawData, output);
  
      AutoEncoderModelPrediction p = new AutoEncoderModelPrediction();
      p.original = expandRawData(rawData, output.length);
      p.reconstructed = output;
      p.reconstructedRowData = reconstructedToRowData(output);
      if (m instanceof DeeplearningMojoModel){
        DeeplearningMojoModel mojoModel = ((DeeplearningMojoModel)m);
        p.mse =  mojoModel.calculateReconstructionErrorPerRowData(p.original, p.reconstructed);
      }
      return p;
    }
docs: Make a prediction on a new data point using an AutoEncoder model.
  @param data A new data point.
  @return The prediction.
  @throws PredictException