Class PyTorchPassThroughResults

java.lang.Object
org.elasticsearch.xpack.core.ml.inference.results.PyTorchPassThroughResults
All Implemented Interfaces:
NamedWriteable, Writeable, InferenceResults, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class PyTorchPassThroughResults extends Object
  • Field Details

  • Constructor Details

    • PyTorchPassThroughResults

      public PyTorchPassThroughResults(String resultsField, double[][] inference, boolean isTruncated)
    • PyTorchPassThroughResults

      public PyTorchPassThroughResults(StreamInput in) throws IOException
      Throws:
      IOException
  • Method Details

    • getInference

      public double[][] getInference()
    • getWriteableName

      public String getWriteableName()
    • doWriteTo

      public void doWriteTo(StreamOutput out) throws IOException
      Throws:
      IOException
    • getResultsField

      public String getResultsField()
    • asMap

      public Map<String,Object> asMap(String outputField)
      Specified by:
      asMap in interface InferenceResults
    • predictedValue

      public Object predictedValue()
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • isTruncated

      public boolean isTruncated()
    • writeTo

      public final void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • toXContent

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

      public final Map<String,Object> asMap()
      Specified by:
      asMap in interface InferenceResults
    • toString

      public String toString()
      Overrides:
      toString in class Object