Skip to main content

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:

  1. Create dataframe (using DataframeCreator) of all of the dates in column 1 and whether it was a fog event or not in column 2.

  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

  3. Build CNN model with Base5kBuilder

  4. Split data into test and train

  5. Then use RandomSampler to randomly oversample data to obtain more data

  6. Test model: prints a confusion matrix

  7. Save the model! Inbuilt try and if statements to help save computing time if dataframe, model, etc. are already saved

  1. ROC metric and the AUC to evaluate how good the model was

“””

Project details


Release history Release notifications | RSS feed

This version

1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

foggy-1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

foggy-1.0-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

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

Hashes for foggy-1.0.tar.gz
Algorithm Hash digest
SHA256 541bc229368b333680cd502af9d88a392d31687cebf02e83a4057173f785e0da
MD5 1e959ad46645e12cc6272689f3a46d42
BLAKE2b-256 2523851a2c9cda4175b5a31fdbb282da8dcb457de01e267e3bdf9fb8ad424ff8

See more details on using hashes here.

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

Hashes for foggy-1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c1b907b58e358eabff0e62c8fd098144c2cf72f275f00164cebd450f994b0379
MD5 57563a7cacb6bc96e3ce27373ed4eca1
BLAKE2b-256 1768434e2044ebe7aedaa001a097c1be73094da5ee71533a2b7e722fbdbd1a59

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page