Skip to content

CosmosRedshift7/biosphere

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Biosphere 2. Thermal Control AI Project

This repository contains Thermal Control AI Project which ensures precise temperature maintenance in climate zones within Biosphere 2, using advanced algorithms to autonomously regulate settings and achieve the desired environmental conditions. By integrating with existing infrastructure and providing predictive analytics, this project revolutionizes thermal management, driving sustainability, user comfort, and resource optimization.

Brief repository overview

  • train.py - entry point to start training;
  • test.py - entry point for testing trained models.

Directory local - the default folder for storing your local files which will not be tracked by git. Feel free to put here any files or data you don't want to track with git (exception: see Ignore changes for configuration files section for more information):

Directory model contains main scripts for model, losses, metrics and dataset class:

Directory utils contains utility or helper scripts that can be used across different parts of a project:

Requirements

Main prerequisites are:

Optional:

  • oracledb - extension module allowing Python programs to connect to Oracle Database. Needed to generate dataset if you do not have it.

Install environment

You can create a conda environment with all required dependencies from environment.yml file:

conda env create -f environment.yml

Activate this environment:

conda activate biosphere

Install Lightning and neptune-client separately using pip (make sure you first activated biosphere environment):

pip install lightning
pip install "neptune-client<1.0.0"

Ignore changes for configuration files

Files tokens.yaml, train.yaml and get_data.yaml are tracked by git, since its templates for your configuration files. It is highly recommended to make them untracked for git before making any changes:

git update-index --skip-worktree local/configs/tokens.yaml
git update-index --skip-worktree local/configs/train.yaml
git update-index --skip-worktree local/configs/get_data.yaml

If you need to remove the update-index flag (make them trackable again, if you need to update template for example):

git update-index --no-skip-worktree <file_name>

To list all flagged files:

git ls-files -v|grep '^S'

You can read more about git update-index --skip-worktree here.

Usage

Before modifying configuration files, it is strongly recommended that you mark them as untracked in Git (see Ignore changes for configuration files). This prevents personal configuration changes from being committed accidentally. Only push updates to the template files when you intentionally want to change them.

Dataset generation:

  1. Specify your tokens in local/configs/tokens.yaml file;
  2. Configure the file local/configs/get_data.yaml according to your preference for the dataset;
  3. Load and generate dataset by:
cd utils
python get_data.py

Start training:

  1. Specify your tokens in local/configs/tokens.yaml file;

  2. Configure the file local/configs/train.yaml according to your preference for the experiment;

  3. Start training by:

python train.py

Specify configuration file

If you want to use a configuration file other than the default one, you can specify it:

python <script_name.py> <path_to_config/config_name.yaml>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages