Skip to content

Instantly share code, notes, and snippets.

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