Machine_learning_2023/decisionTree/evaluate.py

9 lines
207 B
Python
Raw Normal View History

2023-05-18 23:18:07 +02:00
import joblib
def evaluate(data):
# Load the model
clf = joblib.load('decisionTree/decision_tree_model.pkl')
# Make a prediction
prediction = clf.predict(data)
2023-05-11 19:34:08 +02:00
return prediction