license: mit language:
- en tags:
- chemistry
- biology
- DFT
- molecular-property-prediction
- graph-neural-networks
- fukui-indices
- reactivity
- pytorch library_name: transformers
Fukui_Net
Neural network for predicting Fukui indices using Kernel-based Attention Networks (KAN) with Chebyshev graph convolutions.
Installation
# Clone and install
git clone https://huggingface.co/Nikolenko-Sergei/FukuiNet
cd FukuiNet
uv sync
Usage
CLI Interface
The CLI provides a simple interface for molecular analysis:
# Check available devices and model info
uv run fukui_net info
# Predict single molecule
uv run fukui_net predict "CCO" --device cuda:1
# Batch prediction from CSV file
uv run fukui_net predict --csv molecules.csv --output predictions.csv --device cuda:1
CLI Options:
--device: Specify device (cpu, cuda:0, cuda:1, etc.)--csv: Input CSV file with SMILES column--output: Output CSV file for batch predictions--column: Name of SMILES column in CSV (default: "smiles")
Input CSV format:
smiles,name
CCO,Ethanol
c1ccccc1,Benzene
Output CSV format:
smiles,fukui_indices
CCO,"[-0.322, -0.122, -0.935, ...]"
c1ccccc1,"[-0.280, -0.280, ...]"
Python API
from transformers import AutoModel
# Load model from Hugging Face Hub
model = AutoModel.from_pretrained(
"Nikolenko-Sergei/FukuiNet",
trust_remote_code=True
)
# Predict Fukui indices
fukui_indices = model.predict("CCO")
print(f"Fukui indices: {fukui_indices}")
# Batch prediction
results = model.predict_batch(["CCO", "c1ccccc1"])
Direct Usage
from fukui_net.predictor import FukuiNetPredictor
# Load predictor
predictor = FukuiNetPredictor("models/final_model.ckpt", device="cuda:1")
# Predict
fukui_indices = predictor.predict_smiles("CCO")
Model Architecture
- Graph Neural Network: Molecular structure as graphs
- Kernel-based Attention Networks (KAN): Advanced attention mechanisms
- Chebyshev Convolutions: Efficient graph operations
- RDKit Integration: Molecular featurization
Input/Output Format
Input: SMILES strings (e.g., "CCO", "c1ccccc1")
Output: List of Fukui indices for each atom
- Positive values: Electrophilic sites
- Negative values: Nucleophilic sites
- Magnitude: Reactivity strength
License
MIT License
Metadata
Release files for fukui-net 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fukui_net-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for fukui_net-0.1.1-py3-none-any.whl |
Release files / fukui_net-0.1.1-py3-none-any.whl
| Download URL | fukui_net-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ef49fddb8f30ebf5ff22d6287cbe22e6df02481844fa065bb7f354b1d559608
|
|
BLAKE2b-256 checksum How to use checksums |
f048da7721dffe78206286cd198323dcdba6ec2db5a4eda1c4dcc7b77faffb01
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Security for fukui-net 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.