Skip to content

Commit

Permalink
Internal only
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 559467373
  • Loading branch information
tf-metadata-team authored and tfx-copybara committed Aug 23, 2023
1 parent a02d14a commit c973240
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions tensorflow_metadata/proto/v0/problem_statement.proto
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ enum TaskType {
TOP_K_CLASSIFICATION = 3;
ONE_DIMENSIONAL_REGRESSION = 4;
MULTI_LABEL_CLASSIFICATION = 5;
MULTI_DIMENSIONAL_REGRESSION = 6;
}

extend google.protobuf.MessageOptions {
Expand Down Expand Up @@ -223,6 +224,43 @@ message OneDimensionalRegression {
}
}

// A multi-dimensional regression task.
// Similar to OneDimensionalRegression, MultiDimensionalRegression predicts
// continuous real numbers. However instead of predicting a single scalar value
// per example, we predict a fixed dimensional vector of values. By default the
// range is any float -inf to inf, but specific sub-types (e.g. probability)
// define more narrow ranges.
message MultiDimensionalRegression {
option (task_type) = MULTI_DIMENSIONAL_REGRESSION;

// The label column.
oneof label_id { // oneof label_id is required.
// The name of the label. Assumes the label is a flat, top-level field.
string label = 1;
// A path can be used instead of a flat string if the label is nested.
Path label_path = 3;
}
// (optional) The weight column.
string weight = 2;

// Defines a regression problem where labels are in [0, 1] and represent a
// probability (e.g: probability of click).
message Probability {
// By default, MultiDimensionalRegression assumes that each value in the
// predicted vector is independent. If predictions_sum_to_1 is true, this
// indicates that the vector of values represent mutually exclusive rather
// than independent probabilities (for example, the probabilities of
// classes in a multi-class scenario). When this is set to true, we use
// softmax instead of sigmoid in the loss function.
optional bool predictions_sum_to_1 = 1;
}

oneof label_type {
// When set means the label is a probability in range [0..1].
Probability probability = 4;
}
}

// The type of a head or meta-objective. Specifies the label, weight,
// and output type of the head.
// TODO(martinz): add logistic regression.
Expand Down

0 comments on commit c973240

Please sign in to comment.