Learn R Programming

datarobot (version 2.18.6)

CreateBacktestSpecification: Create a list describing backtest parameters

Description

Uniquely defines a Backtest used in a DatetimePartitioning

Usage

CreateBacktestSpecification(
  index,
  gapDuration,
  validationStartDate,
  validationDuration
)

Value

list with backtest parameters

Arguments

index

integer. The index of the backtest

gapDuration

character. The desired duration of the gap between training and validation data for the backtest in duration format (ISO8601).

validationStartDate

character. The desired start date of the validation data for this backtest (RFC 3339 format).

validationDuration

character. The desired end date of the validation data for this backtest in duration format (ISO8601).

Details

Includes only the attributes of a backtest directly controllable by users. The other attributes are assigned by the DataRobot application based on the project dataset and the user-controlled settings. All durations should be specified with a duration string such as those returned by the ConstructDurationString helper function.

Examples

Run this code
zeroDayDuration <- ConstructDurationString()
hundredDayDuration <- ConstructDurationString(days = 100)
CreateBacktestSpecification(index = 0,
                            gapDuration = zeroDayDuration,
                            validationStartDate = "1989-12-01",
                            validationDuration = hundredDayDuration)

Run the code above in your browser using DataLab