Sample Worksheet
Sample Worksheet
Sample Worksheet
Experiment: 1.4
1. Aim of the practical: Understand supervised learning to train and develop classifier models.
4. Code:
Task 1:
from pycaret.classification import *
s = setup(data = tele, target = 'Class')
rf = create_model("rf")
University Institute of Engineering
Department of Computer Science & Engineering
sm = save_model(rf, "rfModelFile")
Task 2:
sv = load_model("rfModelFile")
Task 3:
plot_model(rf, "confusion_matrix")
plot_model(rf, "learning")
plot_model(rf, plot="auc")