Skip to main content

A library for pair-probability and coverage prediction using machine learning.

Project description

XMFlib

English | 中文

XMFlib is a lightweight ML inference library for surface science.

It focuses on three core topics:

  1. PairProbML: pair-site probability prediction
  2. CovML: coverage prediction
  3. Quick integration: simple API and pretrained models

Installation

pip install XMFlib

Virtual Environment Setup (Recommended)

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

1. PairProbML

  • Predict pair probabilities on 100 / 111 facets
  • Supports 1NN and 2NN inference
  • Output order: [Pee, Paa, Pae]

Basic 1NN example:

from XMFlib.PairProbML import PairProbPredictor

predictor = PairProbPredictor()
result = predictor.predict(
    facet=100,
    interaction_energy=0.3,
    temperature=400,
    main_coverage=0.7
)
print("Predicted probabilities:", result)

2NN example:

from XMFlib.PairProbML import PairProbPredictor

predictor = PairProbPredictor()
result_2nn = predictor.predict_2nn(
    facet=111,
    interaction_energy_1nn=0.16,
    interaction_energy_2nn=0.04,
    temperature=525,
    main_coverage=0.7
)
print("Predicted 2NN probabilities:", result_2nn)

2. CovML

  • Predict coverage from interaction energy, adsorption energy, and temperature
  • Output order: [A_Coverage, E_Coverage]
from XMFlib.CovML import CovPredictor

predictor = CovPredictor()
result = predictor.predict(
    facet=100,
    interaction_energy=0.18,
    adsorption_energy=-0.86,
    temperature=400
)
print("Predicted coverage:", result)

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.4.1.tar.gz (1.5 MB view details)

Uploaded Source

Built Distribution

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

xmflib-0.4.1-py3-none-any.whl (1.5 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xmflib-0.4.1.tar.gz
Algorithm Hash digest
SHA256 f08c92dee2badbe00a896fa410b74e177aae25853c7b161c9b44fc0ab29d18db
MD5 e383e636dd2dfda7411475801ae1df58
BLAKE2b-256 20cb4ce35a702a4708d796e08c1072e3d640272fa3fc7a1074b3f54a6cd22d29

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for xmflib-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 467267a6bb14022fe59f6f6beae6c6a32fcc73ab310da7702f3cb505d5b06eae
MD5 8361fc2d15933d1bdb69523a8ec84b67
BLAKE2b-256 7583f1b6353a421ee2e5f014b115c1912d55b63df32777c4a076270f6ead27fa

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