Skip to content

Expert system in proposal calculation that can reason on a set of rules and initial facts to deduce other facts.

Notifications You must be signed in to change notification settings

mboy29/ExpertSystem_42

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXPERT SYSTEM

Validated at 125%

The goal of this project is to make a propositional calculus expert system by implementing a backward-chaining inference engine.

Usage

Virtualenv

First of all, setup virtualenv using the following command:

source ./setup.sh

The script will automatically install all dependencies listed in the requirements.txt file. You can also deactivate the virtualenv by executing the script as so :

source ./setup.sh --deactivate

Expert system

To execute the main program, execute the following script

python3 -B main.py [-v] [-h] file

Where:

  • file is the path to the input file to read and parse from.
  • -v or --verbose to enables verbose mode (outputs details information on the logic)
  • -h or --help do display a help message concerning the usage of the script

Unit testing

To perform unit tests on the privously mentioned programe:

python3 -B test.py

Where:

  • -v or --valid to perfom tests only on valid cases
  • -i or --invalid to perfom tests only on error cases
  • -h or --help do display a help message concerning the usage of the script By default the program runs both valid and error cases.

About

Expert system in proposal calculation that can reason on a set of rules and initial facts to deduce other facts.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published