foggy is a python package for using a CNN to predict fog at airports
Project description
# foggy
foggy package for Pypi
- foggy is a python package for training and testing convolutional
neural networks on atmospheric grib files to predict the occurrence of fog at airports.
## How to install foggy
“”” pip install foggy “””
## How to run foggy “””
Can be run individually or use CNNActivator() which does the following:
Create dataframe (using DataframeCreator) of all of the dates in column 1 and whether it was a fog event or not in column 2.
ReDirecter: takes balanced subset of data files (all fog and some no fog) moves to new folder DataDealer: Extracts data (eg. mslp and rh) into X and uses fog or nofog column from the dataframe as Y Normalizer: Normalizes X
Build CNN model with Base5kBuilder
Split data into test and train
Then use RandomSampler to randomly oversample data to obtain more data
Test model: prints a confusion matrix
Save the model! Inbuilt try and if statements to help save computing time if dataframe, model, etc. are already saved
ROC metric and the AUC to evaluate how good the model was
“””
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file foggy-1.0.tar.gz
.
File metadata
- Download URL: foggy-1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 541bc229368b333680cd502af9d88a392d31687cebf02e83a4057173f785e0da |
|
MD5 | 1e959ad46645e12cc6272689f3a46d42 |
|
BLAKE2b-256 | 2523851a2c9cda4175b5a31fdbb282da8dcb457de01e267e3bdf9fb8ad424ff8 |
File details
Details for the file foggy-1.0-py3-none-any.whl
.
File metadata
- Download URL: foggy-1.0-py3-none-any.whl
- Upload date:
- Size: 9.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1b907b58e358eabff0e62c8fd098144c2cf72f275f00164cebd450f994b0379 |
|
MD5 | 57563a7cacb6bc96e3ce27373ed4eca1 |
|
BLAKE2b-256 | 1768434e2044ebe7aedaa001a097c1be73094da5ee71533a2b7e722fbdbd1a59 |