Skip to main content

mofreinforce

Project description

scheme_rl-01

Reinforcement Learning Framework For MOFs

This package is a reinforcement learning framework for MOFs. The framework consists of agent and environment which are a generator and a predictor, respectively. The agent takes an action (which is generating a MOF structure). This action is then evaluated in the environment by the predictor, which predicts the value of the property we are interested in. Based on the prediction, a reward is returned in form of an update to the agent to generate the next round of MOFs.

Installation

OS and hardware requirements

Linux : Ubuntu 20.04, 22.04

For optimal performance, we recommend running with GPUs

Dependencies

python>=3.8

Install

Please install pytorch (>= 1.12.0) according to your environments before installation of requirements.

pip install -e .

Getting Started

download pre-trained models

In order to run the reinforcement learning framework, predictor (environment) and generator (agent) should be pre-trained.

mofreinforce download default

Then, you can find the pre-trained generator and predictors in mofreinforce/model.

Predictor

If you want to train the predictor for your own desired property, please refer to predictor.md.

Generator

We provide a generator which selects a topology and a metal cluster, which are categorical variables, in order and then creates an organic linker represented by SELFIES string. The generator was pre-trained with about 650,000 MOFs created by PORMAKE, which allows for generating feasible MOFs. You can find the pre-trained generator at model/generator.ckpt.

Reinforcement Learning

(1) reinforcement learning with CO2 heat of adsorption

python run.py with v0_qkh

(2) reinforcement learning with CO2/H2O selectivity

python run.py with v1_selectivity

if you want to experiment with other parameters by modifying mofreinforce/reinforce/config_freinforce.py

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

mofreinforce-0.0.2.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

mofreinforce-0.0.2-py3-none-any.whl (42.0 kB view details)

Uploaded Python 3

File details

Details for the file mofreinforce-0.0.2.tar.gz.

File metadata

  • Download URL: mofreinforce-0.0.2.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for mofreinforce-0.0.2.tar.gz
Algorithm Hash digest
SHA256 637389b02ec7751e033c8c28a5dc22bb58e20a8d30d35981bf84886ebc1a5add
MD5 34bdc433e76e51ceea2e8ac21602a65e
BLAKE2b-256 6497e28bdd970cde336e294b09d13d6aec0ef76807084a92cf3ac55bf337dd52

See more details on using hashes here.

File details

Details for the file mofreinforce-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mofreinforce-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 42.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.16

File hashes

Hashes for mofreinforce-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aa6e81c7e219cba10836bbf4e84133aa505a78fadd5d4f318e6f446908159e77
MD5 6b820872b1937d19a4a73bf8ea996eea
BLAKE2b-256 75760c263c69d494895d9d74d98304487c358501bb8c811a3f06e85b18747546

See more details on using hashes here.

Supported by

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