Skip to content

Commit 6e2fb82

Browse files
ahojnnesogrisel
authored andcommitted
Add RegressorMixin base class
1 parent ae1bea9 commit 6e2fb82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sklearn/linear_model/ransac.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66

77
import numpy as np
88

9-
from ..base import BaseEstimator, MetaEstimatorMixin, clone
9+
from ..base import BaseEstimator, MetaEstimatorMixin, RegressorMixin, clone
1010
from ..utils import check_random_state, atleast2d_or_csr
1111
from ..utils.random import sample_without_replacement
1212
from .base import LinearRegression
1313

1414

15-
class RANSACRegressor(BaseEstimator, MetaEstimatorMixin):
15+
class RANSACRegressor(BaseEstimator, MetaEstimatorMixin, RegressorMixin):
1616
"""RANSAC (RANdom SAmple Consensus) algorithm.
1717
1818
RANSAC is an iterative algorithm for the robust estimation of parameters

0 commit comments

Comments
 (0)