Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Monsoothsayer

Miami hourly weather → hurricane presence (binary classification at fixed lead time)
Deep Learning final project — by Anusha Abdula, Matthew Beck, and Mythri Lakkireddy

Detailed experiment protocol in-repo: update_2/experiments_section.md.


Tech stack

Language & runtime

  • Python 3

ML & numerics

  • TensorFlow / Keras (LSTM, GRU, MLP builders, training, callbacks)
  • scikit-learn (scaling, metrics)
  • NumPy, pandas
  • joblib (scaler persistence)

Project layout

  • process_orchestrator.py — single entrypoint: data prep → train → evaluate → save artifacts
  • models/lstm/, models/gru/, models/mlp/ — one package per architecture (model + sequence helpers)
  • utilities/ — plotting (data_display.py), custom losses (keras_losses.py), data utilities
  • data/miami_era_merged_hourly.csv — merged hourly Miami / ERA-style table used for experiments

Overview

Problem. Predict whether a hurricane is present in the Miami region at a fixed lead time from the end of a historical window, using hourly meteorological inputs and derived time features. The default target is the binary column is_hurricane (0/1); the label is aligned H hours after the end of a L-hour lookback (defaults: L = 72 h, H = 72 h). Inputs exclude the target so labels are not leaked.

Models compared (same pipeline). Stacked LSTM, stacked GRU, and a flattened-window MLP baseline. For binary is_hurricane, training uses focal loss (optional BCE), inverse-frequency-style class weights, early stopping on validation AUC, and learning-rate reduction on plateau. Sequences use a temporal train/test split (no shuffle). Evaluation reports metrics at a threshold chosen to maximize test F1 over a sweep.

Outputs. Each run is saved under models/<architecture>/<architecture>_models/weather_run_<timestamp>/, including the Keras model, scalers, training history, predictions, metrics, and related diagnostics (see orchestrator for the full artifact list).


Quick start

From the repository root (with dependencies installed):

# Default: LSTM, binary is_hurricane, data/miami_era_merged_hourly.csv
python process_orchestrator.py --model lstm

python process_orchestrator.py --model gru
python process_orchestrator.py --model mlp

Useful flags (see python process_orchestrator.py --help for all):

  • --csv-path — alternate CSV path
  • --lookback-hours, --forecast-horizon-hours, --stride, --test-size
  • --binary-loss focal|bce
  • --targets — override targets for multi-output regression experiments

Related code

  • models.py — older exploratory script (simpler windowing); the canonical training path is process_orchestrator.py and the models/ package.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages