Cloud AutoML V1beta1 Client - Class RegressionEvaluationMetrics (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1beta1 Client class RegressionEvaluationMetrics.

Metrics for regression problems.

Generated from protobuf message google.cloud.automl.v1beta1.RegressionEvaluationMetrics

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ root_mean_squared_error float

Output only. Root Mean Squared Error (RMSE).

↳ mean_absolute_error float

Output only. Mean Absolute Error (MAE).

↳ mean_absolute_percentage_error float

Output only. Mean absolute percentage error. Only set if all ground truth values are are positive.

↳ r_squared float

Output only. R squared.

↳ root_mean_squared_log_error float

Output only. Root mean squared log error.

getRootMeanSquaredError

Output only. Root Mean Squared Error (RMSE).

Returns
TypeDescription
float

setRootMeanSquaredError

Output only. Root Mean Squared Error (RMSE).

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMeanAbsoluteError

Output only. Mean Absolute Error (MAE).

Returns
TypeDescription
float

setMeanAbsoluteError

Output only. Mean Absolute Error (MAE).

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getMeanAbsolutePercentageError

Output only. Mean absolute percentage error. Only set if all ground truth values are are positive.

Returns
TypeDescription
float

setMeanAbsolutePercentageError

Output only. Mean absolute percentage error. Only set if all ground truth values are are positive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getRSquared

Output only. R squared.

Returns
TypeDescription
float

setRSquared

Output only. R squared.

Parameter
NameDescription
var float
Returns
TypeDescription
$this

getRootMeanSquaredLogError

Output only. Root mean squared log error.

Returns
TypeDescription
float

setRootMeanSquaredLogError

Output only. Root mean squared log error.

Parameter
NameDescription
var float
Returns
TypeDescription
$this