Skip to main content

A library for pair probability prediction using machine learning.

Project description

XMFlib

XMFlib is a machine learning-based library for predicting pair-site probabilities, designed for surface science and materials simulation. Leveraging pre-trained neural network models, it can quickly predict various types of pair probabilities based on input interaction energy, temperature, and coverage.


Features

  • Supports multiple surface types (e.g., 100, 111 facets)
  • Built-in multi-layer perceptron (MLP) models for efficient inference
  • Simple and user-friendly API, easy to integrate into research and engineering projects
  • Compatible with PyTorch, making it easy to extend and customize models

Installation

pip install XMFlib

Virtual Environment Setup (Recommended)

conda create --name <env_name> python=3.9
conda activate <env_name>
pip install XMFlib

Usage Example

from XMFlib.PairProbML import PairProbPredictor

predictor = PairProbPredictor()
result = predictor.predict(
    facet=100,                  # Facet type, options: '100' or '111'
    interaction_energy=0.2,     # Interaction energy (eV)
    temperature=400,            # Temperature (K)
    main_coverage=0.5           # Main species coverage (0~1)
)
print(result)
# Example output: {'vacancy_pair': 0.12, 'species_pair': 0.34, 'species_vacancy_pair': 0.54}

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

xmflib-0.1.6.tar.gz (56.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xmflib-0.1.6-py3-none-any.whl (54.8 kB view details)

Uploaded Python 3

File details

Details for the file xmflib-0.1.6.tar.gz.

File metadata

  • Download URL: xmflib-0.1.6.tar.gz
  • Upload date:
  • Size: 56.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for xmflib-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a08caf28e0d4579ff9a8faaf6d7623b30f0c2d3210c09694ee79dc698ca55ea6
MD5 9f1f7a4a047da2084452b05815a748b3
BLAKE2b-256 154771608166026ca7373a7fd1b0dbfb1c05222a24450a453cef6cc768aed9a2

See more details on using hashes here.

File details

Details for the file xmflib-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: xmflib-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 54.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for xmflib-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ec9aa415973c131c53bdc4bf708d2e758a35e44cb4f3d1966e12bf210ccdd7e5
MD5 0aa287a4935cca260e59a965bd80705a
BLAKE2b-256 081db1029f47248085461ea1cf1c7d8d5d07f364e4f6db37a08ee7422ab2005a

See more details on using hashes here.

Supported by

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