Skip to main content

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

pathogen_decision_engine-0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

pathogen_decision_engine-0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file pathogen_decision_engine-0.1.tar.gz.

File metadata

File hashes

Hashes for pathogen_decision_engine-0.1.tar.gz
Algorithm Hash digest
SHA256 eb3b06c47096340431d7ad66e74da9f2467ff245c9a77b297ca1ca99175ab450
MD5 0964de907931bb82ef6aa54fe76b0e86
BLAKE2b-256 853ca7a69185b42a531f7ea874b718599b79c73c386ec957b9dd30bc5fa20c26

See more details on using hashes here.

File details

Details for the file pathogen_decision_engine-0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pathogen_decision_engine-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 48d7d4cff1047003133bf5fee936eb0b7c7142ac9de20e57d3adef97b6540a4d
MD5 5d1b778aa2f6b535874ad7c4a601a6d7
BLAKE2b-256 8c01f8072d09e05f480f831bbf6910137d86b9a5b12f8b60058708e4e385aa1d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page