Module org.elasticsearch.xcore
Class RegressionInferenceResults
java.lang.Object
org.elasticsearch.xpack.core.ml.inference.results.SingleValueInferenceResults
org.elasticsearch.xpack.core.ml.inference.results.RegressionInferenceResults
- All Implemented Interfaces:
NamedWriteable,Writeable,InferenceResults,ToXContent,ToXContentFragment
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from class org.elasticsearch.xpack.core.ml.inference.results.SingleValueInferenceResults
FEATURE_IMPORTANCEFields inherited from interface org.elasticsearch.inference.InferenceResults
MODEL_ID_RESULTS_FIELDFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRegressionInferenceResults(double value, String resultsField) RegressionInferenceResults(double value, String resultsField, int topNFeatures, List<RegressionFeatureImportance> featureImportance) RegressionInferenceResults(double value, String resultsField, List<RegressionFeatureImportance> featureImportance) RegressionInferenceResults(double value, InferenceConfig config) RegressionInferenceResults(double value, InferenceConfig config, List<RegressionFeatureImportance> featureImportance) -
Method Summary
Modifier and TypeMethodDescriptionasMap()booleaninthashCode()toXContent(XContentBuilder builder, ToXContent.Params params) voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.ml.inference.results.SingleValueInferenceResults
value, valueAsStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
RegressionInferenceResults
-
RegressionInferenceResults
public RegressionInferenceResults(double value, InferenceConfig config, List<RegressionFeatureImportance> featureImportance) -
RegressionInferenceResults
-
RegressionInferenceResults
public RegressionInferenceResults(double value, String resultsField, List<RegressionFeatureImportance> featureImportance) -
RegressionInferenceResults
public RegressionInferenceResults(double value, String resultsField, int topNFeatures, List<RegressionFeatureImportance> featureImportance) -
RegressionInferenceResults
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classSingleValueInferenceResults- Throws:
IOException
-
getFeatureImportance
-
equals
-
hashCode
public int hashCode() -
predictedValue
-
getResultsField
-
asMap
-
asMap
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Throws:
IOException
-
getWriteableName
-