Skip to content

Instantly share code, notes, and snippets.

@pycaret
Last active August 1, 2020 13:30
Show Gist options
  • Save pycaret/bc2f0dc6e8cc7ad87c1240265094c471 to your computer and use it in GitHub Desktop.
Save pycaret/bc2f0dc6e8cc7ad87c1240265094c471 to your computer and use it in GitHub Desktop.
# Import module
from pycaret.classification import *
# Initialize setup (when using Notebook environment)
clf1 = setup(data, target = 'target-variable')
# Initialize setup (outside of Notebook environment)
clf1 = setup(data, target = 'target-variable', html = False)
# Initialize setup (When using remote execution such as Kaggle / GitHub actions / CI-CD pipelines)
clf1 = setup(data, target = 'target-variable', html = False, silent = True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment