Class NNTrainedModel

java.lang.Object
org.apache.tika.detect.TrainedModel
org.apache.tika.detect.NNTrainedModel

@Deprecated(since="2026-04-30") public class NNTrainedModel extends TrainedModel
Deprecated.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NNTrainedModel(int nInput, int nHidden, int nOutput, float[] nn_params)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    predict(double[] unseen)
    Deprecated.
     
    float
    predict(float[] unseen)
    Deprecated.
    The given input vector of unseen is m=(256 + 1) * n= 1 this returns a prediction probability

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NNTrainedModel

      public NNTrainedModel(int nInput, int nHidden, int nOutput, float[] nn_params)
      Deprecated.
  • Method Details

    • predict

      public double predict(double[] unseen)
      Deprecated.
      Specified by:
      predict in class TrainedModel
    • predict

      public float predict(float[] unseen)
      Deprecated.
      The given input vector of unseen is m=(256 + 1) * n= 1 this returns a prediction probability
      Specified by:
      predict in class TrainedModel