Interface InferenceResults

All Superinterfaces:
NamedWriteable, ToXContent, ToXContentFragment, Writeable

public interface InferenceResults extends NamedWriteable, ToXContentFragment
  • Field Details

  • Method Details

    • writeResult

      static void writeResult(InferenceResults results, IngestDocument ingestDocument, String resultField, String modelId)
    • writeResultToField

      static void writeResultToField(InferenceResults results, IngestDocument ingestDocument, @Nullable String basePath, String outputField, String modelId, boolean includeModelId)
    • getResultsField

      String getResultsField()
    • asMap

      Map<String,Object> asMap()
      Convert to a map
      Returns:
      Map representation of the InferenceResult
    • asMap

      Map<String,Object> asMap(String outputField)
      Convert to a map placing the inference result in outputField
      Parameters:
      outputField - Write the inference result to this field
      Returns:
      Map representation of the InferenceResult
    • predictedValue

      Object predictedValue()