Skip to content

Instantly share code, notes, and snippets.

@pabloalcain
Created October 1, 2022 20:54
Show Gist options
  • Save pabloalcain/7401282614eaf6692a8ee9a5cd560197 to your computer and use it in GitHub Desktop.
Save pabloalcain/7401282614eaf6692a8ee9a5cd560197 to your computer and use it in GitHub Desktop.
class Model:
def __init__(self, number_of_selected=2):
self.classifier = Pipeline(
steps=[("select", SelectKBest(k=number_of_selected)),
("clf", LogisticRegression())])
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment