Class TopNFeaturesByAttribution
java.lang.Object
com.azure.resourcemanager.machinelearning.models.MonitoringFeatureFilterBase
com.azure.resourcemanager.machinelearning.models.TopNFeaturesByAttribution
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MonitoringFeatureFilterBase>
The TopNFeaturesByAttribution model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TopNFeaturesByAttribution class. -
Method Summary
Modifier and TypeMethodDescriptionGet the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.static TopNFeaturesByAttributionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TopNFeaturesByAttribution from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) top()Get the top property: The number of top features to include.voidvalidate()Validates the instance.Set the top property: The number of top features to include.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TopNFeaturesByAttribution
public TopNFeaturesByAttribution()Creates an instance of TopNFeaturesByAttribution class.
-
-
Method Details
-
filterType
Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.- Overrides:
filterTypein classMonitoringFeatureFilterBase- Returns:
- the filterType value.
-
top
Get the top property: The number of top features to include.- Returns:
- the top value.
-
withTop
Set the top property: The number of top features to include.- Parameters:
top- the top value to set.- Returns:
- the TopNFeaturesByAttribution object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMonitoringFeatureFilterBase- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MonitoringFeatureFilterBase>- Overrides:
toJsonin classMonitoringFeatureFilterBase- Throws:
IOException
-
fromJson
public static TopNFeaturesByAttribution fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TopNFeaturesByAttribution from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TopNFeaturesByAttribution if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TopNFeaturesByAttribution.
-