Skip to content

Commit

Permalink
Add support for 'TablesModelMetadata.{optimization_objective_recall_v…
Browse files Browse the repository at this point in the history
…alue,optimization_objective_precision_value}' (via synth). (#8643)
  • Loading branch information
yoshi-automation authored and tseaver committed Jul 11, 2019
1 parent 36f3dd2 commit 21e6d38
Show file tree
Hide file tree
Showing 3 changed files with 113 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ message TablesModelMetadata {
// operating characteristic (ROC) curve.
// "MINIMIZE_LOG_LOSS" - Minimize log loss.
// "MAXIMIZE_AU_PRC" - Maximize the area under the precision-recall curve.
// "MAXIMIZE_PRECISION_AT_RECALL" - Maximize precision for a specified
// recall value.
// "MAXIMIZE_RECALL_AT_PRECISION" - Maximize recall for a specified
// precision value.
//
// CLASSIFICATION_MULTI_CLASS :
// "MINIMIZE_LOG_LOSS" (default) - Minimize log loss.
Expand All @@ -157,6 +161,19 @@ message TablesModelMetadata {
// "MINIMIZE_MAE" - Minimize mean-absolute error (MAE).
string optimization_objective = 4;

// Additional optimization objective configuration. Required for
// `MAXIMIZE_PRECISION_AT_RECALL` and `MAXIMIZE_RECALL_AT_PRECISION`,
// otherwise unused.
oneof additional_optimization_objective_config {
// Required when optimization_objective is "MAXIMIZE_PRECISION_AT_RECALL".
// Must be between 0 and 1, inclusive.
float optimization_objective_recall_value = 17;

// Required when optimization_objective is "MAXIMIZE_RECALL_AT_PRECISION".
// Must be between 0 and 1, inclusive.
float optimization_objective_precision_value = 18;
}

// Output only. Auxiliary information for each of the
// input_feature_column_specs with respect to this particular model.
repeated TablesModelColumnInfo tables_model_column_info = 5;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/google-cloud-automl/synth.metadata
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"updateTime": "2019-07-03T12:16:09.242440Z",
"updateTime": "2019-07-11T12:12:01.271899Z",
"sources": [
{
"generator": {
"name": "artman",
"version": "0.29.3",
"dockerImage": "googleapis/artman@sha256:8900f94a81adaab0238965aa8a7b3648791f4f3a95ee65adc6a56cfcc3753101"
"version": "0.29.4",
"dockerImage": "googleapis/artman@sha256:63f21e83cb92680b7001dc381069e962c9e6dee314fd8365ac554c07c89221fb"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "69916b6ffbb7717fa009033351777d0c9909fb79",
"internalRef": "256241904"
"sha": "c50d9e822e19e069b7e3758736ea58cb4f35267c",
"internalRef": "257512381"
}
},
{
Expand Down

0 comments on commit 21e6d38

Please sign in to comment.