Source code for esmvaltool.diag_scripts.mlr.models.linear

"""Linear Regression model.

Use ``mlr_model_type: linear`` to use this MLR model in the recipe.

"""

import logging
import os

from sklearn.linear_model import LinearRegression

from esmvaltool.diag_scripts.mlr.models import MLRModel
from esmvaltool.diag_scripts.mlr.models.linear_base import LinearModel

logger = logging.getLogger(os.path.basename(__file__))


[docs] @MLRModel.register_mlr_model('linear') class LinearRegressionModel(LinearModel): """Linear Regression model.""" _CLF_TYPE = LinearRegression