"AI for Sustainability" Toolkit for Research and Analysis. ASTRA (अस्त्र) means a "tool" or "a weapon" in Sanskrit.
Since astra is developed for research purposes, we'd try to adhere to these principles:
- Keep the API simple-to-use and standardized to enable quick prototyping via automated scripts.
- Keep the API transparent to expose as many details as possilbe. Explicit should be preferred over implicit.
- Keep the API flexible to allow users to stretch the limits of their experiments.
- We will try not to reduce code repeatation at expence of transparency, flexibility and performance. Too much abstraction often makes the API complex to understand and thus becomes hard to adapt for custom use cases.
| Points | Example |
|---|---|
| 1 and 2 | We have exactly same arguments for all strategies in astra.torch.al.strategies to ease the automation but we explicitely mention in the docstrings if an argument is used or ignored for a strategy. |
| 2 | predict functions in astra by default put the model on eval mode but also allow to set eval_mode to False. This can be useful for techniques like MC dropout. |
| 3 | train_fn from astra.torch.utils works for all types of models and losses which may or may not be from astra. |
| 4 | Though F1 score can be computed from precision and recall, we explicitely use F1 score formula to allow transparency and to avoid computing TP multiple times. |
Stable version:
pip install astra-libLatest version:
pip install git+https://github.com/sustainability-lab/ASTRAPlease go through the contributing guidelines before making a contribution.
{{ load_data }}{{ load_data_output }}
{{ load_data_error }}{{ mlp }}{{ mlp_output }}
{{ mlp_error }}{{ cnn }}{{ cnn_output }}
{{ cnn_error }}{{ efficientnet }}{{ efficientnet_output }}
{{ efficientnet_error }}{{ vit }}{{ vit_output }}
{{ vit_error }}{{ quick_train }}{{ quick_train_output }}
{{ quick_train_error }}{{ train_with_dataloader }}{{ train_with_dataloader_output }}
{{ train_with_dataloader_error }}{{ advanced_train }}{{ advanced_train_output }}
{{ advanced_train_error }}{{ count_params }}{{ count_params_output }}
{{ count_params_error }}