Skip to content

Instantly share code, notes, and snippets.

@erykml
Created August 30, 2022 20:56
Show Gist options
  • Save erykml/8281ecbfe5a6f71d919fd577840da9a1 to your computer and use it in GitHub Desktop.
Save erykml/8281ecbfe5a6f71d919fd577840da9a1 to your computer and use it in GitHub Desktop.
ransac = RANSACRegressor(random_state=42).fit(X, y)
fit_df["ransac_regression"] = ransac.predict(plotline_X)
ransac_coef = ransac.estimator_.coef_
coef_list.append(["ransac_regression", ransac.estimator_.coef_[0]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment