Skip to content

Instantly share code, notes, and snippets.

@svpino
Last active August 17, 2023 17:38
Show Gist options
  • Save svpino/2408ddf892f5c2f90b115e1bc5a01865 to your computer and use it in GitHub Desktop.
Save svpino/2408ddf892f5c2f90b115e1bc5a01865 to your computer and use it in GitHub Desktop.
PyCaret Sample
import comet_ml
from pycaret.datasets import get_data
from pycaret.classification import *
comet_ml.init(project_name="pycaret")
dataset = get_data("titanic")
clf1 = setup(
data=dataset,
target="Survived",
log_experiment="comet_ml",
experiment_name="pycaret_example",
log_data=True,
)
model = compare_models(sort="Accuracy")
predict_model(model)
save_model(model, "titanic")
comet_logger = clf1[0].logging_param.loggers[0]
comet_logger.finish_experiment()
comet_logger.run.display("panels")
@mwiti6844
Copy link

Pretty neat tool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment