Reference documentation and code samples for the Google Cloud Financial Services V1 Client class BacktestResult.
BacktestResult is created to test the performance of a model on a dataset.
Generated from protobuf message google.cloud.financialservices.v1.BacktestResult
Namespace
Google \ Cloud \ FinancialServices \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
| data | arrayOptional. Data for populating the Message object. | 
| ↳ name | stringOutput only. The resource name of the BacktestResult. format:  | 
| ↳ create_time | Google\Protobuf\TimestampOutput only. The timestamp of creation of this resource. | 
| ↳ update_time | Google\Protobuf\TimestampOutput only. The timestamp of the most recent update of this resource. | 
| ↳ labels | array|Google\Protobuf\Internal\MapFieldLabels | 
| ↳ state | intOutput only. State of the BacktestResult (creating, active, deleting, etc.) | 
| ↳ dataset | stringRequired. The resource name of the Dataset to backtest on Format:  | 
| ↳ model | stringRequired. The resource name of the Model to use or to backtest. Format:  | 
| ↳ end_time | Google\Protobuf\TimestampRequired. End_time specifies the latest time from which labels are used and from which data is used to generate features for backtesting. End_time should be no later than the end of the date_range of the primary dataset. | 
| ↳ backtest_periods | intThe number of consecutive months to conduct backtesting for, ending with the last full month prior to the end_time according to the dataset's timezone. | 
| ↳ performance_target | BacktestResult\PerformanceTargetRequired. PerformanceTarget gives information on how the test will be evaluated. | 
| ↳ line_of_business | intOutput only. The line of business (Retail/Commercial) this backtest is for. Determined by Model, cannot be set by user. | 
getName
Output only. The resource name of the BacktestResult.
format:
/projects/{project_num}/locations/{location}/instances/{instance}/backtestResults/{backtest_result}
| Returns | |
|---|---|
| Type | Description | 
| string | |
setName
Output only. The resource name of the BacktestResult.
format:
/projects/{project_num}/locations/{location}/instances/{instance}/backtestResults/{backtest_result}
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getCreateTime
Output only. The timestamp of creation of this resource.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Timestamp|null | |
hasCreateTime
clearCreateTime
setCreateTime
Output only. The timestamp of creation of this resource.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Protobuf\Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getUpdateTime
Output only. The timestamp of the most recent update of this resource.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Timestamp|null | |
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The timestamp of the most recent update of this resource.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Protobuf\Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getLabels
Labels
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Internal\MapField | |
setLabels
Labels
| Parameter | |
|---|---|
| Name | Description | 
| var | array|Google\Protobuf\Internal\MapField | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getState
Output only. State of the BacktestResult (creating, active, deleting, etc.)
| Returns | |
|---|---|
| Type | Description | 
| int | Enum of type State. | 
setState
Output only. State of the BacktestResult (creating, active, deleting, etc.)
| Parameter | |
|---|---|
| Name | Description | 
| var | intEnum of type State. | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getDataset
Required. The resource name of the Dataset to backtest on
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/datasets/{dataset}
| Returns | |
|---|---|
| Type | Description | 
| string | |
setDataset
Required. The resource name of the Dataset to backtest on
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/datasets/{dataset}
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getModel
Required. The resource name of the Model to use or to backtest.
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
| Returns | |
|---|---|
| Type | Description | 
| string | |
setModel
Required. The resource name of the Model to use or to backtest.
Format:
/projects/{project_num}/locations/{location}/instances/{instance}/models/{model}
| Parameter | |
|---|---|
| Name | Description | 
| var | string | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getEndTime
Required. End_time specifies the latest time from which labels are used and from which data is used to generate features for backtesting. End_time should be no later than the end of the date_range of the primary dataset.
| Returns | |
|---|---|
| Type | Description | 
| Google\Protobuf\Timestamp|null | |
hasEndTime
clearEndTime
setEndTime
Required. End_time specifies the latest time from which labels are used and from which data is used to generate features for backtesting. End_time should be no later than the end of the date_range of the primary dataset.
| Parameter | |
|---|---|
| Name | Description | 
| var | Google\Protobuf\Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getBacktestPeriods
The number of consecutive months to conduct backtesting for, ending with the last full month prior to the end_time according to the dataset's timezone.
| Returns | |
|---|---|
| Type | Description | 
| int | |
setBacktestPeriods
The number of consecutive months to conduct backtesting for, ending with the last full month prior to the end_time according to the dataset's timezone.
| Parameter | |
|---|---|
| Name | Description | 
| var | int | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getPerformanceTarget
Required. PerformanceTarget gives information on how the test will be evaluated.
| Returns | |
|---|---|
| Type | Description | 
| BacktestResult\PerformanceTarget|null | |
hasPerformanceTarget
clearPerformanceTarget
setPerformanceTarget
Required. PerformanceTarget gives information on how the test will be evaluated.
| Parameter | |
|---|---|
| Name | Description | 
| var | BacktestResult\PerformanceTarget | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |
getLineOfBusiness
Output only. The line of business (Retail/Commercial) this backtest is for.
Determined by Model, cannot be set by user.
| Returns | |
|---|---|
| Type | Description | 
| int | Enum of type LineOfBusiness. | 
setLineOfBusiness
Output only. The line of business (Retail/Commercial) this backtest is for.
Determined by Model, cannot be set by user.
| Parameter | |
|---|---|
| Name | Description | 
| var | intEnum of type LineOfBusiness. | 
| Returns | |
|---|---|
| Type | Description | 
| $this | |