dataset_generator#
Generates a dataset for steady state prediction from a list of np.ndarrays.
- create_dataset(data_list: list[pandas.core.frame.DataFrame], start_value_params: list[str], prediction_params: list[str]) tuple[numpy.ndarray[Any, numpy.dtype[numpy.float64]], numpy.ndarray[Any, numpy.dtype[numpy.float64]]]#
Creates a dataset for steady state prediction from a list of dataframes.
- Parameters:
data_list – The list of dataframes.
start_value_params – The parameters to use as start values.
prediction_params – The parameters to predict.
- Returns:
A tuple of x and y.
- split_features_and_labels(samples: list[pandas.core.frame.DataFrame], start_value_params: list[str], prediction_params: list[str]) tuple[list[numpy.ndarray[Any, numpy.dtype[numpy.float64]]], list[numpy.ndarray[Any, numpy.dtype[numpy.float64]]]]#
Splits a list of training samples into X and y.
- Parameters:
samples – The list of training samples.
start_value_params – The start values of the physical system that are used as features for the steady state prediction.
prediction_params – The parameters that show the steady state (used as labels for the steady state prediction).
- Returns:
A tuple of X and y.