# ADCIRC ROM ADCIRC ROM (Reduced-Order-Modeling) is suite of tools for developing surrogate machine learning models of storm surge. The tools can be used both in an HPC and a single-threaded environment.
## Designsafe Quickstart
Start a Jupyter lab session.
2. Use Jupyter lab to launch a terminal, and in the terminal run the following: ` pip install netCDF4 sklearn global-land-mask xgboost geopandas scipy h5py fire git clone https://github.com/UT-CHG/adcirc-rom.git cd adcirc-rom python3 dataset.py setup `
This will create a data folder with the subdirectories datasets, storms and models. These subdirectories are needed for the model development workflow. The datasets directory is used for storing machine-learning ready datasets. The storms directory will contain the raw ADCIRC input (note when run within the DesignSafe environment this directory will be prepopulated with a dataset of 446 synthetic ADCIRC simulations). Finally, the models dataset is used for storing saved ML models and predictions.
3. To generate a dataset, run the command ` python3 dataset.py create default `
This will create a dataset named ‘default’ in the directory data/datasets. This dataset can be used to train machine learning models. The dataset.py script takes a number of options that control the size and scope of the generated dataset, as well as the included features.
Note: with the default settings, dataset creation in the Designsafe environment will take a few hours due to the lack of MPI support and the size of the data to be processed. The dataset generation script supports parallization with MPI - and is significantly faster when run on HPC resources such as TACC.
4. To train and save a new model named ‘xgb_base’, using the dataset named default, run the command ` python3 model.py train xgb_base --dataset=default `
This will create a new model named ‘xgb_base’. During, training, a portion of the dataset is set aside for testing purposes - predictions are generated for the test dataset and saved alongside the model binary. Additional model training parameters can be passed to the script.
To perform cross-validation, run the command
` python3 model.py cv --dataset=default `
This will also print out feature importances. Note that all model training parameters that are supported by the train are supported by the cv command as well. This allows for testing out of parameters before training a model.
Finally, to generate predictions on a new dataset using a saved model, run ` python3 model.py predict [modelname] --dataset=[datasetname] `
All predictions can be accessed in the folder data/datasets/[modelname].
Please reach out with any questions or bug reports to Benjamin Pachev <benjamin.pachev@gmail.com>.
Metadata
Release files for adcirc-rom 0.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| adcirc-rom-0.0.0.tar.gz | 1.3 MB | Without provenance | Details for adcirc-rom-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| adcirc_rom-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for adcirc_rom-0.0.0-py3-none-any.whl |
Total release size: 2.5 MB
Release files / adcirc-rom-0.0.0.tar.gz
| Download URL | adcirc-rom-0.0.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
625001e81d07ff2682c17d2369409ce53c45610aa5854de1f6bdfe0aa3545360
|
|
BLAKE2b-256 checksum How to use checksums |
2a15a5472a92eb0ac49b1149caf92f10662fe878a6d72886c263462278b954cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / adcirc_rom-0.0.0-py3-none-any.whl
| Download URL | adcirc_rom-0.0.0-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4f9c650c2f54547481f9677d00e4d87907736d867f9b028157838c61d54c7c8e
|
|
BLAKE2b-256 checksum How to use checksums |
b6f6b8c6aaa9e9ed786448821737091aa56ac898f382eae29bc28b6d6ea42afb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for adcirc-rom 0.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.