Class ParsedInference

java.lang.Object
org.elasticsearch.search.aggregations.ParsedAggregation
org.elasticsearch.client.analytics.ParsedInference
All Implemented Interfaces:
Aggregation, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentFragment

public class ParsedInference extends ParsedAggregation
This class parses the superset of all possible fields that may be written by InferenceResults. The warning field is mutually exclusive with all the other fields. In the case of classification results getValue() may return a String, Boolean or a Double. For regression results getValue() is always a Double.
  • Field Details

    • FEATURE_IMPORTANCE

      public static final org.elasticsearch.xcontent.ParseField FEATURE_IMPORTANCE
    • WARNING

      public static final org.elasticsearch.xcontent.ParseField WARNING
    • TOP_CLASSES

      public static final org.elasticsearch.xcontent.ParseField TOP_CLASSES
  • Method Details

    • fromXContent

      public static ParsedInference fromXContent(org.elasticsearch.xcontent.XContentParser parser, String name)
    • getValue

      public Object getValue()
    • getFeatureImportance

      public List<FeatureImportance> getFeatureImportance()
    • getTopClasses

      public List<TopClassEntry> getTopClasses()
    • getWarning

      public String getWarning()
    • doXContentBody

      protected org.elasticsearch.xcontent.XContentBuilder doXContentBody(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      doXContentBody in class ParsedAggregation
      Throws:
      IOException
    • getType

      public String getType()