Skip to content

Commit cbcedb1

Browse files
committed
added comments
1 parent 7dd459c commit cbcedb1

File tree

1 file changed

+2
-0
lines changed
  • ml/predictive_modelling_for_agriculture

1 file changed

+2
-0
lines changed

Diff for: ml/predictive_modelling_for_agriculture/script.py

+2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464

6565
# Train the model using features as X_train and target as y_train
6666
log_reg.fit(X_train, y_train)
67+
68+
# Predctions using test data
6769
y_pred = log_reg.predict(X_test)
6870
model_performance = f1_score(y_pred, y_test, average='weighted')
6971
print(f"F1-score : {model_performance}")

0 commit comments

Comments
 (0)