Module nowcastlib.pipeline.structs
Module containing custom structures used throughout the pipeline submodule.
Expand source code
"""
Module containing custom structures used throughout the pipeline
submodule.
"""
from typing import Tuple, TypeVar, List, Optional
import pandas as pd
import numpy as np
from . import config
SparseData = Tuple[pd.core.frame.DataFrame, np.ndarray]
TrainTestSplit = Tuple[SparseData, SparseData]
"""The dataframe and block locations of the train and test sets"""
IteratedSplit = Tuple[List[SparseData], List[SparseData]]
"""List of train data and list of validation data"""
SplitDataSet = Tuple[TrainTestSplit, IteratedSplit]
"""
The result of splitting a dataset for evaluation and validation:
"""
Sub-modules
nowcastlib.pipeline.structs.config
-
Structs to aid with configuration …
Global variables
var TrainTestSplit
-
The dataframe and block locations of the train and test sets
var IteratedSplit
-
List of train data and list of validation data
var SplitDataSet
-
The result of splitting a dataset for evaluation and validation: