Reference documentation and code samples for the Financial Services V1 API class Google::Cloud::FinancialServices::V1::PredictionResult.
PredictionResult is the result of using a model to create predictions.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The timestamp of creation of this resource.
#dataset
def dataset() -> ::String
Returns
-
(::String) — Required. The resource name of the Dataset to do predictions on
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}
#dataset=
def dataset=(value) -> ::String
Parameter
-
value (::String) — Required. The resource name of the Dataset to do predictions on
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}
Returns
-
(::String) — Required. The resource name of the Dataset to do predictions on
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/dataset/{dataset_id}
#end_time
def end_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Required. Specifies the latest time from which data is used to generate features for predictions. This time should be no later than the end of the date_range of the dataset.
#end_time=
def end_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
- value (::Google::Protobuf::Timestamp) — Required. Specifies the latest time from which data is used to generate features for predictions. This time should be no later than the end of the date_range of the dataset.
Returns
- (::Google::Protobuf::Timestamp) — Required. Specifies the latest time from which data is used to generate features for predictions. This time should be no later than the end of the date_range of the dataset.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — Labels
Returns
- (::Google::Protobuf::Map{::String => ::String}) — Labels
#line_of_business
def line_of_business() -> ::Google::Cloud::FinancialServices::V1::LineOfBusiness
Returns
- (::Google::Cloud::FinancialServices::V1::LineOfBusiness) — Output only. The line of business (Retail/Commercial) this prediction is for. Determined by Model, cannot be set by user.
#model
def model() -> ::String
Returns
-
(::String) — Required. The resource name of the Model to use to use to make predictions
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
#model=
def model=(value) -> ::String
Parameter
-
value (::String) — Required. The resource name of the Model to use to use to make predictions
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
Returns
-
(::String) — Required. The resource name of the Model to use to use to make predictions
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
#name
def name() -> ::String
Returns
-
(::String) — Output only. The resource name of the PredictionResult.
format:
/projects/{project_num}/locations/{location}/instances/{instance}/predictionResults/{prediction_result}
#outputs
def outputs() -> ::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs
Returns
- (::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs) — Required. Where to write the output of the predictions.
#outputs=
def outputs=(value) -> ::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs
Parameter
- value (::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs) — Required. Where to write the output of the predictions.
Returns
- (::Google::Cloud::FinancialServices::V1::PredictionResult::Outputs) — Required. Where to write the output of the predictions.
#prediction_periods
def prediction_periods() -> ::Integer
Returns
- (::Integer) — The number of consecutive months to produce predictions for, ending with the last full month prior to end_time according to the dataset's timezone.
#prediction_periods=
def prediction_periods=(value) -> ::Integer
Parameter
- value (::Integer) — The number of consecutive months to produce predictions for, ending with the last full month prior to end_time according to the dataset's timezone.
Returns
- (::Integer) — The number of consecutive months to produce predictions for, ending with the last full month prior to end_time according to the dataset's timezone.
#state
def state() -> ::Google::Cloud::FinancialServices::V1::PredictionResult::State
Returns
- (::Google::Cloud::FinancialServices::V1::PredictionResult::State) — Output only. State of the PredictionResult (creating, active, deleting, etc.)
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The timestamp of the most recent update of this resource.