> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/sdgm/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/sdgm/_mcp/server.

# lag_timesteps

#### `lag_timesteps: <integer>` (Optional)

## Description

For forecasting problems, leverage the auto-regressive labels as inputs. This parameter controls the number of previous values should be considered as auto-regressive labels.

### Supported Task Types

* Forecasting

### Example

For the following query, a value of `lag_timesteps=3` will consider sum from the last 3, 7-day, windows as input features.

```yaml Field
PREDICT SUM(TRANSACTIONS.AMOUNT, 0, 7, days)
FOR EACH CUSTOMERS.CUSTOMER_ID
```

### Default Values

| run\_mode | Default Value |
| :-------- | :------------ |
| FAST      | `1`           |
| NORMAL    | `1`           |
| BEST      | `1`           |

Experimental Feature