regression_data_formatters module¶
Data formatters for regression algorithms.
- class gemseo.mlearning.data_formatters.regression_data_formatters.RegressionDataFormatters[source]
Bases:
SupervisedDataFormatters
Data formatters for regression algorithms.
- classmethod format_dict_jacobian(func)[source]
Make an array-based function callable with a dictionary of NumPy arrays.
- Parameters:
func (Callable[[MLRegressionAlgo, ndarray, Any, ...], ndarray]) – The function to be called; it takes a NumPy array in input and returns a NumPy array.
- Returns:
The wrapped
func
function, callable with either a NumPy data array or a dictionary of numpy data arrays indexed by variables names. The return value will have the same type as the input data.- Return type:
Callable[[MLRegressionAlgo, DataType, Any, …], DataType]
- classmethod transform_jacobian(func)[source]
Apply transformation to inputs and inverse transformation to outputs.
- Parameters:
func (Callable[[MLRegressionAlgo, ndarray, Any, ...], ndarray]) – The function of interest to be called.
- Returns:
A function evaluating the function
func
, after transforming its input data and/or before transforming its output data.- Return type:
Callable[[MLRegressionAlgo, ndarray, Any, …], ndarray]