GradientCobra Python Library

Author

Installation of the library

Gradient Cobra library can be installed from pypi using pip:

pip install gradientcobra

This library contains various aggregation methods for machine learning predictions.

Aggregation methods

  • Gradient COBRA is a kernel-based consensual aggregation method for regressoin (S. Has, 2023). GradientCOBRA method can be implemented by:
from gradientcobra.gradientcobra import GradientCOBRA

For more information about this method, read GradientCOBRA documentation.


  • KernelSmoother is a nonparametric regression estimation method. It can be implemented by:
from gradientcobra.gradientcobra import KernelSmoother

For more information about this method, read KernelSmoother documentation.


  • MixCOBRARegressor is an aggregation method for both regression and classification that takes into account both input and output of the basic estimators (A. Fischer and M. Mougeot (2019)). This method is available for regression and can be implemented in python by:
from gradientcobra.mixcobra import MixCOBRARegressor

For more information about this method, read MixCOBRARegressor documentation.


  • SuperLearner is a special case of stack regression method that aggregates regressors based on their predicted features using meta learner (M. J. Van der Laan et al., 2007). This method can be implemented in gradientcobra library by:
from gradientcobra.superlearner import SuperLearner

For more information about this method, read SuperLearner documentation.


References