ScikitLearnAdaptor#

class causalpy.skl_models.ScikitLearnAdaptor[source]#

Base class for scikit-learn models that can be used for causal inference.

Methods

ScikitLearnAdaptor.__init__()

ScikitLearnAdaptor.calculate_cumulative_impact(impact)

Calculate the cumulative impact intervention.

ScikitLearnAdaptor.calculate_impact(y_true, ...)

Calculate the causal impact of the intervention.

ScikitLearnAdaptor.get_coeffs()

Get the coefficients of the model as a numpy array.

ScikitLearnAdaptor.print_coefficients(labels)

Print the coefficients of the model with the corresponding labels.

__init__()#
__new__(**kwargs)#