Last active
August 17, 2023 17:38
-
-
Save svpino/2408ddf892f5c2f90b115e1bc5a01865 to your computer and use it in GitHub Desktop.
PyCaret Sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pretty neat tool