Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datalabeling_v1beta1/classes.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb,
lib/google/apis/datalabeling_v1beta1/representations.rb

Overview

Provides details for how an evaluation job sends email alerts based on the results of a run.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig

Returns a new instance of GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig.



1889
1890
1891
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1889

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#emailString

Required. An email address to send alerts to. Corresponds to the JSON property email

Returns:

  • (String)


1879
1880
1881
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1879

def email
  @email
end

#min_acceptable_mean_average_precisionFloat

Required. A number between 0 and 1 that describes a minimum mean average precision threshold. When the evaluation job runs, if it calculates that your model version's predictions from the recent interval have meanAveragePrecision below this threshold, then it sends an alert to your specified email. Corresponds to the JSON property minAcceptableMeanAveragePrecision

Returns:

  • (Float)


1887
1888
1889
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1887

def min_acceptable_mean_average_precision
  @min_acceptable_mean_average_precision
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1894
1895
1896
1897
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 1894

def update!(**args)
  @email = args[:email] if args.key?(:email)
  @min_acceptable_mean_average_precision = args[:min_acceptable_mean_average_precision] if args.key?(:min_acceptable_mean_average_precision)
end