Enum google_api_proto::google::cloud::bigquery::v2::model::hparam_tuning_enums::HparamTuningObjective
source · #[repr(i32)]pub enum HparamTuningObjective {
Show 17 variants
Unspecified = 0,
MeanAbsoluteError = 1,
MeanSquaredError = 2,
MeanSquaredLogError = 3,
MedianAbsoluteError = 4,
RSquared = 5,
ExplainedVariance = 6,
Precision = 7,
Recall = 8,
Accuracy = 9,
F1Score = 10,
LogLoss = 11,
RocAuc = 12,
DaviesBouldinIndex = 13,
MeanAveragePrecision = 14,
NormalizedDiscountedCumulativeGain = 15,
AverageRank = 16,
}
Expand description
Available evaluation metrics used as hyperparameter tuning objectives.
Variants§
Unspecified = 0
Unspecified evaluation metric.
MeanAbsoluteError = 1
Mean absolute error. mean_absolute_error = AVG(ABS(label - predicted))
MeanSquaredError = 2
Mean squared error. mean_squared_error = AVG(POW(label - predicted, 2))
MeanSquaredLogError = 3
Mean squared log error. mean_squared_log_error = AVG(POW(LN(1 + label) - LN(1 + predicted), 2))
MedianAbsoluteError = 4
Mean absolute error. median_absolute_error = APPROX_QUANTILES(absolute_error, 2)[OFFSET(1)]
RSquared = 5
R^2 score. This corresponds to r2_score in ML.EVALUATE. r_squared = 1 - SUM(squared_error)/(COUNT(label)*VAR_POP(label))
ExplainedVariance = 6
Explained variance. explained_variance = 1 - VAR_POP(label_error)/VAR_POP(label)
Precision = 7
Precision is the fraction of actual positive predictions that had positive actual labels. For multiclass this is a macro-averaged metric treating each class as a binary classifier.
Recall = 8
Recall is the fraction of actual positive labels that were given a positive prediction. For multiclass this is a macro-averaged metric.
Accuracy = 9
Accuracy is the fraction of predictions given the correct label. For multiclass this is a globally micro-averaged metric.
F1Score = 10
The F1 score is an average of recall and precision. For multiclass this is a macro-averaged metric.
LogLoss = 11
Logorithmic Loss. For multiclass this is a macro-averaged metric.
RocAuc = 12
Area Under an ROC Curve. For multiclass this is a macro-averaged metric.
DaviesBouldinIndex = 13
Davies-Bouldin Index.
MeanAveragePrecision = 14
Mean Average Precision.
NormalizedDiscountedCumulativeGain = 15
Normalized Discounted Cumulative Gain.
AverageRank = 16
Average Rank.
Implementations§
source§impl HparamTuningObjective
impl HparamTuningObjective
sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true
if value
is a variant of HparamTuningObjective
.
sourcepub fn from_i32(value: i32) -> Option<HparamTuningObjective>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<HparamTuningObjective>
Converts an i32
to a HparamTuningObjective
, or None
if value
is not a valid variant.
source§impl HparamTuningObjective
impl HparamTuningObjective
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for HparamTuningObjective
impl Clone for HparamTuningObjective
source§fn clone(&self) -> HparamTuningObjective
fn clone(&self) -> HparamTuningObjective
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HparamTuningObjective
impl Debug for HparamTuningObjective
source§impl Default for HparamTuningObjective
impl Default for HparamTuningObjective
source§fn default() -> HparamTuningObjective
fn default() -> HparamTuningObjective
source§impl From<HparamTuningObjective> for i32
impl From<HparamTuningObjective> for i32
source§fn from(value: HparamTuningObjective) -> i32
fn from(value: HparamTuningObjective) -> i32
source§impl Hash for HparamTuningObjective
impl Hash for HparamTuningObjective
source§impl Ord for HparamTuningObjective
impl Ord for HparamTuningObjective
source§fn cmp(&self, other: &HparamTuningObjective) -> Ordering
fn cmp(&self, other: &HparamTuningObjective) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for HparamTuningObjective
impl PartialEq for HparamTuningObjective
source§fn eq(&self, other: &HparamTuningObjective) -> bool
fn eq(&self, other: &HparamTuningObjective) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for HparamTuningObjective
impl PartialOrd for HparamTuningObjective
source§fn partial_cmp(&self, other: &HparamTuningObjective) -> Option<Ordering>
fn partial_cmp(&self, other: &HparamTuningObjective) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for HparamTuningObjective
impl TryFrom<i32> for HparamTuningObjective
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<HparamTuningObjective, UnknownEnumValue>
fn try_from(value: i32) -> Result<HparamTuningObjective, UnknownEnumValue>
impl Copy for HparamTuningObjective
impl Eq for HparamTuningObjective
impl StructuralPartialEq for HparamTuningObjective
Auto Trait Implementations§
impl Freeze for HparamTuningObjective
impl RefUnwindSafe for HparamTuningObjective
impl Send for HparamTuningObjective
impl Sync for HparamTuningObjective
impl Unpin for HparamTuningObjective
impl UnwindSafe for HparamTuningObjective
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request