MNT add path as a static abstract method to LinearModelCV
@@ -1176,6 +1176,11 @@ class LinearModelCV(MultiOutputMixin, LinearModel, metaclass=ABCMeta):
def _is_multitask(self):
"""Bool indicating if class is meant for multidimensional target."""
+ @staticmethod
+ @abstractmethod
+ def path(X, y, **kwargs):
+ """Compute path with coordinate descent."""
+
def fit(self, X, y):
"""Fit linear model with coordinate descent.
