> 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.

# end_time

#### `end_time: <integer | str>` (Optional)

## Description

Defines the timestamp for the ending of the training data or numerical offset from the most recent entry to not use to generate training data labels. Unless a custom time unit is specified in the aggregation, this value is in `days`. This can be used to make sure the query only generates labels on data from the last `end_time` days. Regardless of this value, all data is used as an input to the model, but this value can help limit what labels are generated.

* `end_time` needs to be \<= 0 or the string format of a timestamp, i.e. ‘2024-04-01’
* If used at the same time as `start_time`, `end_time` should be strictly larger.

### Supported Task Types

* Temporal

### Example

For example, you may want to only use training examples for customers that churned in the last year, but those customers may have 10 years of data that we will use for training the model.

```Text Field
end_time: <integer | str>
end_time: -10 # Do not train on data from the last 10 days
end_time: -365 # Do not train on data from the last year
end_time: ‘2024-04-01’ # Only train on data up to ‘2024-04-01’
```

This only applies to temporal queries (queries that include a temporal aggregation such as `SUM(TRANSACTIONS.AMOUNT, 0, 2, days)`) The unit of this step is the same as the unit in the aggregation.

### Default Values

| run\_mode | Default Value |
| :-------- | :------------ |
| FAST      | None          |
| NORMAL    | None          |
| BEST      | None          |