citylearn.end_use_load_profiles.lstm_model.preprocessing module
- citylearn.end_use_load_profiles.lstm_model.preprocessing.dataset_dataloader(x: ndarray, y: ndarray, batch_size: int, shuffle: bool = None, drop_last: bool = None) Tuple[TensorDataset, DataLoader][source]
- citylearn.end_use_load_profiles.lstm_model.preprocessing.preprocess_df(config: Mapping[str, Any], df: DataFrame, train_references: List[int] = None, validation_references: List[int] = None, test_references: List[int] = None) Mapping[str, Any][source]
- citylearn.end_use_load_profiles.lstm_model.preprocessing.sliding_windows(data: ndarray, seq_length: int, output_len: int)[source]
Create lookback/output windows where target is the last column.
- Parameters:
data (np.ndarray) – Input array where the prediction target is the last column.
seq_length (int) – Number of lookback time steps.
output_len (int) – Number of future target steps to predict.
- Returns:
xwith shape[num_steps - lookback, lookback, num_input_features]andywith shape[num_steps - lookback, num_output_features].- Return type:
Tuple[np.ndarray, np.ndarray]