-
Notifications
You must be signed in to change notification settings - Fork 0
Output Structure
martanto edited this page Feb 23, 2026
·
12 revisions
All outputs are written under:
{output_dir}/{network}.{station}.{location}.{channel}/
For example, with network="VG", station="OJN", location="00", channel="EHZ":
output/VG.OJN.00.EHZ/
output/
βββ VG.OJN.00.EHZ/
β
βββ tremor/
β βββ daily/ # Per-day CSV files (removed if cleanup_daily_dir=True)
β βββ figures/ # Daily tremor plots (created if plot_daily=True)
β βββ tremor_*.csv # Final merged tremor data
β
βββ features/
β βββ tremor_matrix_*.csv # Aligned tremor matrix (all columns)
β βββ tremor_matrix_per_method/ # Per-column tremor matrices (optional)
β βββ all_extracted_features_*.csv # tsfresh output per tremor column
β βββ label_features_*.csv # Labels aligned with features
β
βββ trainings/
β β
β βββ model-with-evaluation/ # Output of train_and_evaluate()
β β βββ {classifier-slug}/ # e.g., random-forest-classifier
β β βββ {cv-slug}/ # e.g., stratified-shuffle-split
β β βββ features/
β β β βββ significant_features/ # Per-seed top-N features
β β β β βββ 00000.csv
β β β β βββ ...
β β β βββ all_features/ # All ranked features (optional)
β β β β βββ 00000.csv
β β β β βββ ...
β β β βββ figures/significant/ # Feature importance plots (optional)
β β β β βββ 00000.jpg
β β β βββ tests/ # Per-seed held-out test splits
β β β β βββ 00000_X_test.csv
β β β β βββ 00000_y_test.csv
β β β β βββ ...
β β β βββ significant_features.csv # Aggregated top features (all seeds)
β β β βββ top_{n}_significant_features.csv
β β βββ models/
β β β βββ 00000.pkl # Trained model β seed 0
β β β βββ 00001.pkl
β β β βββ ...
β β βββ metrics/
β β β βββ 00000.json # Per-seed metrics JSON
β β β βββ ...
β β βββ figures/ # Aggregate evaluation plots
β β β βββ aggregate_roc_curve.png / .csv
β β β βββ aggregate_pr_curve.png / .csv
β β β βββ aggregate_calibration.png / .csv
β β β βββ aggregate_prediction_distribution.png / .csv
β β β βββ aggregate_confusion_matrix.png / .csv
β β β βββ aggregate_threshold_analysis.png / .csv
β β β βββ aggregate_feature_importance.png / .csv
β β β βββ aggregate_metrics.csv
β β βββ trained_model_{suffix}.csv # Registry of all trained models
β β βββ all_metrics_{suffix}.csv # All per-seed metrics
β β βββ metrics_summary_{suffix}.csv # Mean Β± std summary
β β
β βββ model-only/ # Output of train()
β βββ {classifier-slug}/
β βββ {cv-slug}/
β βββ features/
β β βββ significant_features/
β β β βββ 00000.csv
β β β βββ ...
β β βββ all_features/ (optional)
β β βββ figures/significant/ (optional)
β β βββ significant_features.csv
β β βββ top_{n}_significant_features.csv
β βββ models/
β β βββ 00000.pkl
β β βββ ...
β βββ trained_model_{suffix}.csv # Registry used by ModelPredictor
β
βββ forecast/
β βββ predictions.csv # Forecast output (predict_proba)
β βββ figures/
β βββ eruption_forecast.png
β
βββ config.yaml # Saved pipeline config (written by save_config())
βββ forecast_model.pkl # Serialised ForecastModel (written by save_model())
Training output files follow this naming pattern:
{ClassifierName}-{CVName}_rs-{random_state}_ts-{total_seed}_top-{n}
Example:
XGBClassifier-StratifiedShuffleSplit_rs-0_ts-500_top-20
So the model registry is:
trained_model_XGBClassifier-StratifiedShuffleSplit_rs-0_ts-500_top-20.csv
| Classifier key | Folder slug |
|---|---|
rf |
random-forest-classifier |
xgb |
xgb-classifier |
gb |
gradient-boosting-classifier |
svm |
svm-classifier |
lr |
logistic-regression-classifier |
nn |
mlp-classifier |
dt |
decision-tree-classifier |
knn |
knn-classifier |
nb |
gaussian-nb-classifier |
voting |
voting-classifier |
| CV strategy key | Folder slug |
|---|---|
shuffle |
stratified-shuffle-split |
stratified |
stratified-k-fold |
timeseries |
time-series-split |
{output_dir}/
βββ metrics/
β βββ all_metrics.csv
β βββ metrics_summary.csv
βββ seed_00000/ # Only created when plot=True
βββ seed_00000_confusion_matrix.png
βββ seed_00000_roc_curve.png
βββ seed_00000_pr_curve.png
βββ seed_00000_threshold_analysis.png
βββ seed_00000_feature_importance.png
βββ seed_00000_calibration.png
βββ seed_00000_prediction_distribution.png
{output_dir}/
βββ predictions.csv # eruption_probability, uncertainty, confidence, prediction
βββ figures/
βββ eruption_forecast.png