Tracker module for ML based TC tracking algortihms#207
Draft
surbhigoel77 wants to merge 9 commits into
Draft
Conversation
This was referenced Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue: #190
The PR aims to build the core infrastructure for running ML models within the TCTrack framework. It uses exisiting base classes and defines new ml-specific classes.
It includes the following files (based on #204):
ml_tracker.py: contains a base dataclassTCMLParametersto fetch ML Parameters and a base abstract classTCMLTrackerthat extends the existing Tracker by adding a load_model function (for ml models). These classes remain common for all ML models (basically it is a way to standardise processes for any incoming new model).cyclone_track_ml.py: inherits the base classes defined inml_tracker.pyand adds new model specific functions. Reads the model from hugging face hub repository and connects it to the run_tracker pipeline. For classes that are common for both ML and non-ML models likeTCTrackerMetadataandTrajectoryare inherited from the originalcore/tracker.pytest_ml_tracker.py: unit, integrationTo be added:
cyclone_track_ml.py(regrid the inference input to match the resolution of the training data). Do we have a standard resolution of data for TCTrackbatching (proprocess -detect-stitch-read_trajectories),
lazy reading with cf.read() -
field = cf.read("file.nc")[0].subspace(T=cf.wi(t_start, t_end))Current progress: Able to load the trained model from hugging face, yet to run detect function (inference)