Class BatchRCFParams

java.lang.Object
org.opensearch.ml.common.input.parameter.rcf.BatchRCFParams
All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable, org.opensearch.core.common.io.stream.Writeable, org.opensearch.core.xcontent.ToXContent, org.opensearch.core.xcontent.ToXContentObject, MLAlgoParams

public class BatchRCFParams extends Object implements MLAlgoParams
  • Field Details

  • Constructor Details

    • BatchRCFParams

      public BatchRCFParams(Integer numberOfTrees, Integer shingleSize, Integer sampleSize, Integer outputAfter, Integer trainingDataSize, Double anomalyScoreThreshold)
    • BatchRCFParams

      public BatchRCFParams(org.opensearch.core.common.io.stream.StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • writeTo

      public void writeTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      writeTo in interface org.opensearch.core.common.io.stream.Writeable
      Throws:
      IOException
    • parse

      public static BatchRCFParams parse(org.opensearch.core.xcontent.XContentParser parser) throws IOException
      Throws:
      IOException
    • getVersion

      public int getVersion()
      Specified by:
      getVersion in interface MLAlgoParams
    • getWriteableName

      public String getWriteableName()
      Specified by:
      getWriteableName in interface org.opensearch.core.common.io.stream.NamedWriteable
    • toXContent

      public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.opensearch.core.xcontent.ToXContent
      Throws:
      IOException
    • builder

      public static BatchRCFParams.BatchRCFParamsBuilder builder()
    • getNumberOfTrees

      public Integer getNumberOfTrees()
    • getShingleSize

      public Integer getShingleSize()
    • getSampleSize

      public Integer getSampleSize()
    • getOutputAfter

      public Integer getOutputAfter()
    • getTrainingDataSize

      public Integer getTrainingDataSize()
    • getAnomalyScoreThreshold

      public Double getAnomalyScoreThreshold()
    • setNumberOfTrees

      public void setNumberOfTrees(Integer numberOfTrees)
    • setShingleSize

      public void setShingleSize(Integer shingleSize)
    • setSampleSize

      public void setSampleSize(Integer sampleSize)
    • setOutputAfter

      public void setOutputAfter(Integer outputAfter)
    • setTrainingDataSize

      public void setTrainingDataSize(Integer trainingDataSize)
    • setAnomalyScoreThreshold

      public void setAnomalyScoreThreshold(Double anomalyScoreThreshold)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object