No project description provided
Project description
Pathogen Decision Engine Package
The Decision Engine Package is a Python package for building and using decision engines based on rule sets defined in CSV files.
Installation
You can install the package via pip:
pip install decision_engine_package
Usage
Command-Line Interface (CLI)
The package provides a command-line interface (CLI) for performing inference using the decision engine. To use the CLI, follow these steps:
Example:
decision_engine_cli --rule_table_path table.csv --input_dict '{"PA":1, "PVS":0, "PS":1, "PM":2, "PP":1, "BA":1, "BS":0, "BP":0}'
Python API
You can also use the package programmatically in your Python code. Here's an example of how to use the DecisionEngine class:
from pathogen_decision_engine.pathogen_decision_engine import PathogenDecisionEngine
# Create a DecisionEngine object
decision_engine = PathogenDecisionEngine('your_dataframe.csv')
# Define input dictionary
input_dict = {"PA":1, "PVS":0, "PS":1, "PM":2, "PP":1, "BA":1, "BS":0, "BP":0}
# Perform inference
result = decision_engine.infer(input_dict)
print(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
Built Distribution
File details
Details for the file pathogen_decision_engine-0.1.tar.gz
.
File metadata
- Download URL: pathogen_decision_engine-0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb3b06c47096340431d7ad66e74da9f2467ff245c9a77b297ca1ca99175ab450 |
|
MD5 | 0964de907931bb82ef6aa54fe76b0e86 |
|
BLAKE2b-256 | 853ca7a69185b42a531f7ea874b718599b79c73c386ec957b9dd30bc5fa20c26 |
File details
Details for the file pathogen_decision_engine-0.1-py3-none-any.whl
.
File metadata
- Download URL: pathogen_decision_engine-0.1-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 48d7d4cff1047003133bf5fee936eb0b7c7142ac9de20e57d3adef97b6540a4d |
|
MD5 | 5d1b778aa2f6b535874ad7c4a601a6d7 |
|
BLAKE2b-256 | 8c01f8072d09e05f480f831bbf6910137d86b9a5b12f8b60058708e4e385aa1d |