aviary-models

The Wren sits on its Roost in the Aviary.

https://github.com/comprhys/aviary

Science Score: 77.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 4 DOI reference(s) in README
  • Academic publication links
    Links to: arxiv.org, science.org, aps.org
  • Committers with academic emails
    1 of 6 committers (16.7%) from academic institutions
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.8%) to scientific vocabulary

Keywords

machine-learning material-science materials-discovery roost wren
Last synced: 6 months ago · JSON representation ·

Repository

The Wren sits on its Roost in the Aviary.

Basic Info
  • Host: GitHub
  • Owner: CompRhys
  • License: mit
  • Language: Python
  • Default Branch: main
  • Homepage:
  • Size: 29.4 MB
Statistics
  • Stars: 58
  • Watchers: 3
  • Forks: 13
  • Open Issues: 1
  • Releases: 9
Topics
machine-learning material-science materials-discovery roost wren
Created over 4 years ago · Last pushed 8 months ago
Metadata Files
Readme Contributing License Citation

README.md

Aviary

![License: MIT](https://img.shields.io/badge/License-MIT-green.svg) [![GitHub Repo Size](https://img.shields.io/github/repo-size/comprhys/aviary?label=Repo+Size)](https://github.com/comprhys/aviary/graphs/contributors) [![PyPI](https://img.shields.io/pypi/v/aviary-models?logo=pypi&logoColor=white)](https://pypi.org/project/aviary-models) [![GitHub last commit](https://img.shields.io/github/last-commit/comprhys/aviary?label=Last+Commit)](https://github.com/comprhys/aviary/commits) [![Tests](https://github.com/CompRhys/aviary/actions/workflows/test.yml/badge.svg)](https://github.com/CompRhys/aviary/actions/workflows/test.yml) [![pre-commit.ci status](https://results.pre-commit.ci/badge/github/CompRhys/aviary/main.svg)](https://results.pre-commit.ci/latest/github/CompRhys/aviary/main) [![This project supports Python 3.10+](https://img.shields.io/badge/Python-3.10+-blue.svg?logo=python&logoColor=white)](https://python.org/downloads)

The aim of aviary is to contain multiple models for materials discovery under a common interface, over time we hope to add more models with a particular focus on coordinate-free deep learning models.

Installation

Users can install aviary from source with

sh pip install aviary-models

or for an editable source install from a local clone:

sh git clone https://github.com/CompRhys/aviary pip install -e ./aviary

Example Use from CLI

To test the input files generation and cleaning/canonicalization please run:

sh python examples/inputs/poscar_to_df.py

This script will load and parse a subset of raw POSCAR files from the TAATA dataset and produce the datasets/examples/examples.csv and datasets/examples/examples.json files used for the next example. For the coordinate-free roost and wren models where the inputs are easily expressed as strings we use CSV inputs. For the structure-based cgcnn model we first construct pymatgen structures from the raw POSCAR files then determine their dictionary serializations before saving in a JSON format. The raw POSCAR files have been selected to ensure that the subset contains all the correct endpoints for the 5 elemental species in the Hf-N-Ti-Zr-Zn chemical system. To test each of the three models provided please run:

sh python examples/roost-example.py --train --evaluate --data-path examples/inputs/examples.csv --targets E_f --tasks regression --losses L1 --robust --epoch 10

sh python examples/wren-example.py --train --evaluate --data-path examples/inputs/examples.csv --targets E_f --tasks regression --losses L1 --robust --epoch 10

sh python examples/wrenformer-example.py --train --evaluate --data-path examples/inputs/examples.csv --targets E_f --tasks regression --losses L1 --robust --epoch 10

sh python examples/cgcnn-example.py --train --evaluate --data-path examples/inputs/examples.json --targets E_f --tasks regression --losses L1 --robust --epoch 10

Please note that for speed/demonstration purposes this example runs on only ~68 materials for 10 epochs - running all these examples should take < 30 sec. These examples do not have sufficient data or training to make accurate predictions, however, the same scripts were used for all experiments conducted as part of the development and publication of these models. Consequently understanding these examples will ensure you can deploy the models as intended for your research.

Notebooks

We also provide some notebooks that show more a more pythonic way to interact with the codebase, these examples make use of the TAATA dataset examined in the wren manuscript:

| | | | | ---------------------------------------------------------------------------------------- | ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | | Roost | Launch Codespace | Open in Google Colab | | Wren | Launch Codespace | Open in Google Colab |

Cite This Work

If you use this code please cite the relevant work:

roost - Predicting materials properties without crystal structure: Deep representation learning from stoichiometry. [Paper] [arXiv]

bibtex @article{goodall_2020_predicting, title={Predicting materials properties without crystal structure: Deep representation learning from stoichiometry}, author={Goodall, Rhys EA and Lee, Alpha A}, journal={Nature Communications}, volume={11}, number={1}, pages={1--9}, year={2020}, publisher={Nature Publishing Group} }

wren - Rapid Discovery of Stable Materials by Coordinate-free Coarse Graining. [Paper] [arXiv]

bibtex @article{goodall_2022_rapid, title={Rapid discovery of stable materials by coordinate-free coarse graining}, author={Goodall, Rhys EA and Parackal, Abhijith S and Faber, Felix A and Armiento, Rickard and Lee, Alpha A}, journal={Science Advances}, volume={8}, number={30}, pages={eabn4117}, year={2022}, publisher={American Association for the Advancement of Science} }

cgcnn - Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material Properties. [Paper] [arXiv]

bibtex @article{xie_2018_crystal, title={Crystal graph convolutional neural networks for an accurate and interpretable prediction of material properties}, author={Xie, Tian and Grossman, Jeffrey C}, journal={Physical review letters}, volume={120}, number={14}, pages={145301}, year={2018}, publisher={APS} }

Disclaimer

This research code is provided as-is. We have checked for potential bugs and believe that the code is being shared in a bug-free state.

Owner

  • Name: Rhys Goodall
  • Login: CompRhys
  • Kind: user

Working on the application of Machine Learning to Materials Discovery | PhD in Physics from the University of Cambridge

Citation (citation.cff)

cff-version: 1.2.0
message: "If you use this software, please cite it as below."
authors:
authors:
  - given-names: Rhys
    family-names: Goodall
    orcid: https://orcid.org/0000-0002-6589-1700
  - given-names: Janosh
    family-names: Riebesell
    orcid: https://orcid.org/0000-0001-5233-3462
title: "aviary"
doi: 10.5281/zenodo.1234
date-released: 2024-11-09
url: "https://github.com/CompRhys/aviary"

GitHub Events

Total
  • Create event: 11
  • Release event: 7
  • Issues event: 7
  • Watch event: 10
  • Delete event: 9
  • Issue comment event: 33
  • Push event: 53
  • Pull request review event: 5
  • Pull request review comment event: 5
  • Pull request event: 24
  • Fork event: 3
Last Year
  • Create event: 11
  • Release event: 7
  • Issues event: 7
  • Watch event: 10
  • Delete event: 9
  • Issue comment event: 33
  • Push event: 53
  • Pull request review event: 5
  • Pull request review comment event: 5
  • Pull request event: 24
  • Fork event: 3

Committers

Last synced: 12 months ago

All Time
  • Total Commits: 608
  • Total Committers: 6
  • Avg Commits per committer: 101.333
  • Development Distribution Score (DDS): 0.411
Past Year
  • Commits: 40
  • Committers: 5
  • Avg Commits per committer: 8.0
  • Development Distribution Score (DDS): 0.225
Top Committers
Name Email Commits
Rhys Goodall r****2@c****k 358
Janosh Riebesell j****l@g****m 230
pre-commit-ci[bot] 6****] 16
Karan Bania k****9@g****m 2
deepsource-autofix[bot] 6****] 1
Christina Winkler 3****r 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 30
  • Total pull requests: 82
  • Average time to close issues: 3 months
  • Average time to close pull requests: 4 days
  • Total issue authors: 11
  • Total pull request authors: 6
  • Average comments per issue: 3.17
  • Average comments per pull request: 0.61
  • Merged pull requests: 77
  • Bot issues: 0
  • Bot pull requests: 18
Past Year
  • Issues: 4
  • Pull requests: 20
  • Average time to close issues: 16 days
  • Average time to close pull requests: 9 days
  • Issue authors: 4
  • Pull request authors: 5
  • Average comments per issue: 2.0
  • Average comments per pull request: 1.35
  • Merged pull requests: 16
  • Bot issues: 0
  • Bot pull requests: 5
Top Authors
Issue Authors
  • janosh (8)
  • CompRhys (7)
  • sgbaird (6)
  • sarah-allec (2)
  • karannb (1)
  • Longhan9926 (1)
  • jdagdelen (1)
  • ryannduma (1)
  • hongshuh (1)
  • zdcao121 (1)
  • PinwenGuan (1)
Pull Request Authors
  • janosh (39)
  • CompRhys (27)
  • pre-commit-ci[bot] (20)
  • karannb (4)
  • christina-winkler (2)
  • deepsource-autofix[bot] (1)
Top Labels
Issue Labels
enhancement (5) help wanted (4) good first issue (4) documentation (4) question (4) code quality (3) bug (2) testing (2) types (1) usability (1) invalid (1)
Pull Request Labels
code quality (5) enhancement (4) packaging (4) documentation (3) usability (3) breaking (3) fix (3) types (2) lint (2) testing (1) docs (1)

Packages

  • Total packages: 3
  • Total downloads: unknown
  • Total dependent packages: 0
    (may contain duplicates)
  • Total dependent repositories: 0
    (may contain duplicates)
  • Total versions: 16
  • Total maintainers: 1
proxy.golang.org: github.com/CompRhys/aviary
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 7 months ago
proxy.golang.org: github.com/comprhys/aviary
  • Versions: 7
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 5.5%
Average: 5.6%
Dependent repos count: 5.8%
Last synced: 7 months ago
pypi.org: aviary-models

A collection of machine learning models for materials discovery

  • Documentation: https://aviary-models.readthedocs.io/
  • License: MIT License Copyright (c) Rhys Goodall Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  • Latest release: 1.2.1
    published 7 months ago
  • Versions: 2
  • Dependent Packages: 0
  • Dependent Repositories: 0
Rankings
Dependent packages count: 8.7%
Stargazers count: 10.6%
Forks count: 11.1%
Average: 19.9%
Dependent repos count: 49.2%
Maintainers (1)
Last synced: 7 months ago

Dependencies

setup.py pypi
  • https *
  • numpy *
  • pandas *
  • protobuf <4.21.0
  • pymatgen *
  • scikit_learn *
  • tensorboard *
  • torch *
  • torch_scatter *
  • tqdm *
  • typing_extensions *
.github/workflows/link-check.yml actions
  • actions/checkout v3 composite
  • gaurav-nelson/github-action-markdown-link-check v1 composite
.github/workflows/test.yml actions
  • actions/checkout v3 composite
  • actions/setup-python v4 composite