Skip to main content

A library for pair probability prediction using machine learning.

Project description

XMFlib

English | 中文

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.3,     # Interaction energy (eV)
    temperature=400,            # Temperature (K)
    main_coverage=0.7           # Main species coverage (0~1)
)
print("Predicted probabilities:", result)

Example output:

Predicted probabilities: [0.002484329044818878, 0.38522598147392273, 0.5955939292907715]

The list corresponds to:

  • Pee: probability of a vacancy-vacancy pair (empty-empty site)
  • Paa: probability of a specie-specie pair (specie-specie)
  • Pae: probability of a specie-vacancy pair (specie-empty site)

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.7.tar.gz (105.8 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.7-py3-none-any.whl (104.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: xmflib-0.1.7.tar.gz
  • Upload date:
  • Size: 105.8 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.7.tar.gz
Algorithm Hash digest
SHA256 a67fa3ed26874b3e67d1aad447e612ed51dece2ceba58acdf45ca54a5fb6939d
MD5 861fc1c0c3ea47faf2f04fbc6c03580d
BLAKE2b-256 810792c5fd69c3aa886757846d844ace1af5859c513635f704c3ea0f01a46253

See more details on using hashes here.

File details

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

File metadata

  • Download URL: xmflib-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 104.2 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 ee7880c0ca8cbb815e61a0c0d383e38ebe3b3c81b15bcf798eaf31200fd20053
MD5 50583d7e382dc71c4ed0c5b3ccc2ba33
BLAKE2b-256 4f03e2360b4a36c44a17c2466b1ca2c269f11724cb1188c83e7caf046e50b211

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