gemseo.mlearning.data_formatters.regression_data_formatters module#
Data formatters for regression algorithms.
- class RegressionDataFormatters[source]#
Bases:
SupervisedDataFormattersData 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[[BaseRegressor, RealArray, Any, ...], RealArray]) -- The function to be called; it takes a NumPy array in input and returns a NumPy array.
- Returns:
The wrapped
funcfunction, 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[[BaseRegressor, DataType, Any, ...], DataType]
- classmethod transform_jacobian(func)[source]#
Apply transformation to inputs and inverse transformation to outputs.
- Parameters:
func (Callable[[BaseRegressor, RealArray, Any, ...], RealArray]) -- 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[[BaseRegressor, RealArray, Any, ...], RealArray]