A library for pair probability prediction using machine learning.
Project description
XMFlib
XMFlib 是一个基于机器学习的配对概率预测库,适用于表面科学和材料模拟领域。它通过预训练的神经网络模型,能够根据输入的相互作用能、温度和覆盖度,快速预测不同类型的配对概率。
特性
- 支持多种表面类型(如 100, 111 晶面)
- 内置多层感知机(MLP)模型,推理高效
- 简单易用的 API,便于集成到科研和工程项目
- 兼容 PyTorch,易于扩展和自定义模型
安装
pip install XMFlib
使用示例
from PairProbML import PairProbPredictor
predictor = PairProbPredictor()
result = predictor.predict(
facet=100, # 晶面类型,可选 '100' 或 '111'
interaction_energy=-0.2, # 相互作用能 (eV)
temperature=400, # 温度 (K)
main_coverage=0.5 # 主组分覆盖度 (0~1)
)
print(result)
# 输出示例: {'vacancy_pair': 0.12, 'species_pair': 0.34, 'species_vacancy_pair': 0.54}
Project details
Release history Release notifications | RSS feed
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.0.tar.gz
(4.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file xmflib-0.1.0.tar.gz.
File metadata
- Download URL: xmflib-0.1.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c52ac9b9ca78acb61fde3a96fedbc27f879639d8f7b709c0b0a6fe4e7272877b
|
|
| MD5 |
3be822098fe5a8ee312601613c178969
|
|
| BLAKE2b-256 |
b7eb04fdac184f55522c40e5943635f7be17f9556b54903b266bf578092ad8f6
|
File details
Details for the file xmflib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: xmflib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d623d454d65465cbcb8c7637ae40c51d279fec88e9dfa607aa6e8eea35e823e3
|
|
| MD5 |
d74cf7758da668a112833bc82059cf24
|
|
| BLAKE2b-256 |
58aeb5022fad6c91164524354700d28e302176bb44c8e7578ec5d543a85540d9
|