Giter Site home page Giter Site logo

feifzhou / atomistic-adversarial-attacks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learningmatter-mit/atomistic-adversarial-attacks

0.0 0.0 0.0 44.57 MB

Code for performing adversarial attacks on atomistic systems using NN potentials

License: MIT License

Python 100.00%

atomistic-adversarial-attacks's Introduction

Atomistic Adversarial Attacks

DOI

Code for performing adversarial attacks on atomistic systems using NN potentials. The software was based on the paper "Differentiable sampling of molecular geometries with uncertainty-based adversarial attacks", and implemented by Daniel Schwalbe-Koda and Aik Rui Tan.

The folder examples contains several Jupyter notebooks that illustrate the examples shown in the manuscript:

The folder data contains three datasets used in the paper: the DFT energies/forces of ammonia, OPLS energies/forces of alanine dipeptide, and zeolites occluded with neutral molecules, in the format readable by the Neural Force Field repo.

The full atomistic data is available at the Materials Cloud Archive on the link https://doi.org/10.24435/materialscloud:2w-6h.

Installation from source

This software was tested with PyTorch 1.4. The installation time highly depends on your internet connection and availability of a conda installation, but should not take more than an hour.

We recommend creating a conda environment to run the code. To do that, follow the setup instructions at the Neural Force Field repository.

conda upgrade conda
conda create -n nff python=3.7 scikit-learn pytorch=1.4.0 cudatoolkit=10.0 ase pandas pymatgen sympy rdkit hyperopt jq openbabel -c pytorch -c conda-forge -c rdkit -c openbabel

Then, install the remaining requirements using pip:

conda activate nff
pip install ipykernel nglview sigopt e3fp

To ensure that the nff environment is accessible through Jupyter, add the the nff display name:

python -m ipykernel install --user --name nff --display-name "nff"

Tutorials on how to use the NN potential

More tutorials are available on the Neural Force Field repository

Citing

The reference for the paper is the following:

@article{schwalbe2021differentiable,
  title={Differentiable sampling of molecular geometries with uncertainty-based adversarial attacks},
  author={Schwalbe-Koda, Daniel and Tan, Aik Rui and G{\'o}mez-Bombarelli, Rafael},
  journal={Nature Communications},
  volume={12},
  pages={5104},
  year={2021},
  publisher={Nature Publishing Group}
}

atomistic-adversarial-attacks's People

Contributors

atan14 avatar gavinwinter avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.