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>

public final class TopNFeaturesByAttribution extends MonitoringFeatureFilterBase
The TopNFeaturesByAttribution model.
  • Constructor Details

    • TopNFeaturesByAttribution

      public TopNFeaturesByAttribution()
      Creates an instance of TopNFeaturesByAttribution class.
  • Method Details

    • filterType

      public MonitoringFeatureFilterType filterType()
      Get the filterType property: [Required] Specifies the feature filter to leverage when selecting features to calculate metrics over.
      Overrides:
      filterType in class MonitoringFeatureFilterBase
      Returns:
      the filterType value.
    • top

      public Integer top()
      Get the top property: The number of top features to include.
      Returns:
      the top value.
    • withTop

      public TopNFeaturesByAttribution withTop(Integer top)
      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:
      validate in class MonitoringFeatureFilterBase
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MonitoringFeatureFilterBase>
      Overrides:
      toJson in class MonitoringFeatureFilterBase
      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.