Update initialize_system.py
Browse files- initialize_system.py +7 -1
initialize_system.py
CHANGED
@@ -386,7 +386,13 @@ def run_initial_training():
|
|
386 |
"data_path": str(dataset_path),
|
387 |
"class_distribution": class_counts.to_dict(),
|
388 |
"pipeline_created": pipeline_path.exists(),
|
389 |
-
"individual_components_created": model_path.exists() and vectorizer_path.exists()
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
}
|
391 |
|
392 |
metadata_path = path_manager.get_metadata_path()
|
|
|
386 |
"data_path": str(dataset_path),
|
387 |
"class_distribution": class_counts.to_dict(),
|
388 |
"pipeline_created": pipeline_path.exists(),
|
389 |
+
"individual_components_created": model_path.exists() and vectorizer_path.exists(),
|
390 |
+
"cv_f1_mean": float(cv_results['test_f1_weighted'].mean()),
|
391 |
+
"cv_f1_std": float(cv_results['test_f1_weighted'].std()),
|
392 |
+
"cv_accuracy_mean": float(cv_results['test_accuracy'].mean()),
|
393 |
+
"cv_accuracy_std": float(cv_results['test_accuracy'].std()),
|
394 |
+
"overfitting_score": cv_data['performance_indicators']['overfitting_score'],
|
395 |
+
"stability_score": cv_data['performance_indicators']['stability_score']
|
396 |
}
|
397 |
|
398 |
metadata_path = path_manager.get_metadata_path()
|