dataset_generator#

Generates a dataset for steady state prediction from a list of np.ndarrays.

create_dataset(data_list: list[DataFrame], start_value_params: list[str], prediction_params: list[str]) tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[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[DataFrame], start_value_params: list[str], prediction_params: list[str]) tuple[list[ndarray[Any, dtype[float64]]], list[ndarray[Any, dtype[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.