torch_timeseries.dataset.Traffic

class Traffic(root: str = './data')[source]

Bases: TimeSeriesDataset

Traffic dataset for road occupancy rates in the San Francisco Bay area.

The raw data is sourced from the California Department of Transportation and is available at http://pems.dot.ca.gov. This dataset contains 48 months (2015-2016) of hourly road occupancy rates (between 0 and 1) measured by different sensors on freeways in the San Francisco Bay area.

name

Name of the dataset.

Type:

str

num_features

Number of features in the dataset.

Type:

int

length

Length of the dataset.

Type:

int

freq

Frequency of the data points.

Type:

str

download()[source]

Downloads and extracts the dataset.

_load()[source]

Loads the dataset into a NumPy array.

_summary_

Parameters:

root (str) – data save location