question regarding 'RANSACRegressor' object has no attribute 'inlier_mask_'
July 29, 2022
4:27 p.m.
To whom it may concern, Belows are the codes: - - - - - from sklearn.linear_model import RANSACRegressor ransac = RANSACRegressor(LinearRegression(), max_trials=100, # default min_samples=0.95, loss='absolute_error', # default residual_threshold=None, # default random_state=123) inlier_mask = ransac.inlier_mask_ - - - - Here is the error message: AttributeError: 'RANSACRegressor' object has no attribute 'inlier_mask_' SO I checked the attributes of RANSACRegressor using dir (RANSACRegressor) and I do not find 'inlier_mask_' Any advise?Henry
1372
Age (days ago)
1372
Last active (days ago)
2 comments
2 participants
participants (2)
-
Guillaume Lemaître -
Shang-Rou Hsieh