Skip to main content

A deep learning framework for climate modelling and data analysis

Project description

DeepClimate

A Python package for climate modelling and data analysis with deep learning.

Latest Version: 0.1.0 Status: Alpha

Description

DeepClimate is an intuitive Python library designed to simplify the training and evaluation of deep neural networks tailored for climate science. Whether you're working on emulation, downscaling, or bias correction of climate datasets, DeepClimate offers tools and pre-built deep learning models to accelerate your research and applications.

Installing the package

pip install deepclimate

Features

  • Built-in support for state-of-the-art deep learning architectures and training strategies (e.g., CNN, U-Net, GAN, etc.).
  • Custom loss functions for climate modeling and other climate-specific metrics.
  • Tools for data preprocessing, visualization, and evaluation.

Objectives:

  1. Easy-to-use interface for novice users.
  2. Develop a deep learning framework for training deep learning models with climate data.
  3. Create custom modules for physics-informed training of deep learning models.
  4. Custom training loss functions and evaluation metrics related to the climate science community.
  5. An open library to host deep learning architectures from the literature.

Applications:

  • Climate data downscaling and bias-correction
  • Weather/Climate prediction models.
  • Hydro-meteorological research.
  • Climate data analysis

Basic usage

# Import library modules
from deepclimate.tensorflow.train import ModelTraining
from deepclimate.tensorflow.models import LINEAR_DENSE
from deepclimate.tensorflow.losses import MeanAbsoluteError

# Load training and validation data
X_train, y_train = ...                # Prepare the training dataset (numpy array, Shape:[T x W x H x C])
X_val,   y_val   = ...                # Prepare the validation dataset (numpy array, Shape:[T x W x H x C])

model = LINEAR_DENSE(...)             # Construct the model architecture

# Initialize the ModelTraining class with specified parameters
mt = ModelTraining(
    generator = model,                # Generator architecture (model) to be used
    loss_fn   = MeanAbsoluteError(),  # Loss function for training 
    lr_init   = 0.0001,               # Initial learning rate for the optimizer
    )

# Train the model using the specified training and validation data, and other parameters
mt.train(
    train_data = (X_train, y_train),  # Training data (input features and target labels)
    val_data   = (X_val, y_val),      # Validation data (input features and target labels)
    epochs     = 10,                  # Number of epochs to train the model (can be adjusted)
    batch_size = 32,                  # Batch size for training and validation
    )

IMPORTANT NOTE

  • The package is under development. Stay connected.

Project details


Download files

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

Source Distribution

deepclimate-0.1.0.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

deepclimate-0.1.0-py3-none-any.whl (47.1 kB view details)

Uploaded Python 3

File details

Details for the file deepclimate-0.1.0.tar.gz.

File metadata

  • Download URL: deepclimate-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for deepclimate-0.1.0.tar.gz
Algorithm Hash digest
SHA256 049949ad446775da4d5a6fac61aa5f56cc07e8451370090c061dfe9eceeb0327
MD5 969f05ccbf6d75fd56486bae1dd3d799
BLAKE2b-256 f32ebf65029b00aaf34b63016b73f63570cd4644a80b1378b6ac216c4eb4323a

See more details on using hashes here.

File details

Details for the file deepclimate-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: deepclimate-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 47.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.0

File hashes

Hashes for deepclimate-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf191d9435aec111eceb52be1265debd724ea7f8c870ed7b8a2d71400f1b642b
MD5 734ef11a88f0ef9a7438afdabcb9dfa2
BLAKE2b-256 964937f4c56eac0fbf08b55aa7de50c8dd910b9be6f69d047dc03de0955060ac

See more details on using hashes here.

Supported by

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