expert-system

Using Python Functions From the Clips Expert System

时间秒杀一切 提交于 2019-12-04 13:28:03
问题 Using PyClips, I'm trying to build rules in Clips that dynamically retrieve data from the Python interpreter. To do this, I register an external function as outlined in the manual. The code below is a toy example of the problem. I'm doing this because I have an application with a large corpus of data, in the form of a SQL database, which I want to reason with using Clips. However, I don't want to waste time converting all this data into Clips assertions, if I can simply "plug" Clips directly

Are there open source expert systems with reasoning capabilities?

假装没事ソ 提交于 2019-12-04 07:27:30
问题 For learning purposes I'd like to study an open source expert system, in particular one that can reason and explain it's reasoning. Which ones do you know? 回答1: Some open source expert systems / expert systems tools (tools you can use to write Expert Systems) include C Language Integrated Production System (CLIPS), CLIPS is an enviroment used to make rule or o bject based expert systems Python Knowledge Engine Pyke, Pyke allows you to use Logic Programming to make expert systems in Python

Decision trees and rule engines (Drools)

大憨熊 提交于 2019-12-03 17:39:27
问题 In the application that I'm working on right now, I need to periodically check eligibility of tens of thousands of objects for some kind of a service. The decision diagram itself is in the following form, just way larger: In each of the end nodes (circles), I need to run an action (change an object's field, log information etc). I tried using Drool Expert framework, but in that case I'd need to write a long rule for every path in the diagram leading to an end node. Drools Flow doesn't seem to

Open source expert system [closed]

一个人想着一个人 提交于 2019-12-03 11:23:33
does anyone know about a open source expert system? actually, I'm rather interested in calling its inferential engine from C#. MountainX Both CLIPS and JESS are already mentioned in other answers, so I will supply this link to CLIPS versus JESS: http://www.comp.lancs.ac.uk/~kristof/research/notes/clipsvsjess/ It was written June 4, 1999, and at that time the advantage was clearly with CLIPS. If you don't want to read it all, here are the conclusions: Chapter 3 The conclusions Both CLIPS and JESS are products with a large support on the internet, but CLIPS seems to have a broader audience,

Python Rule Based Engine [closed]

ぐ巨炮叔叔 提交于 2019-12-03 10:00:47
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . I am looking to design a system that will essentially need to make decisions based on input. The input will be a person. class Person: def __init__(self, name, age, sex, weight, height, nationality): self.name = name self.age = age self.sex = sex self.weight = weight self.height = height self.nationality = nationality We want to assign each person to a school class based on certain rules.

Using Python Functions From the Clips Expert System

吃可爱长大的小学妹 提交于 2019-12-03 08:27:26
Using PyClips, I'm trying to build rules in Clips that dynamically retrieve data from the Python interpreter. To do this, I register an external function as outlined in the manual . The code below is a toy example of the problem. I'm doing this because I have an application with a large corpus of data, in the form of a SQL database, which I want to reason with using Clips. However, I don't want to waste time converting all this data into Clips assertions, if I can simply "plug" Clips directly into Python's namespace. However, when I try to create the rule, I get an error. What am I doing wrong

Decision trees and rule engines (Drools)

不羁的心 提交于 2019-12-03 06:24:49
In the application that I'm working on right now, I need to periodically check eligibility of tens of thousands of objects for some kind of a service. The decision diagram itself is in the following form, just way larger: In each of the end nodes (circles), I need to run an action (change an object's field, log information etc). I tried using Drool Expert framework, but in that case I'd need to write a long rule for every path in the diagram leading to an end node. Drools Flow doesn't seem to be built for such a use case either - I take an object and then, depending on the decisions along the

Are there open source expert systems with reasoning capabilities?

会有一股神秘感。 提交于 2019-12-02 14:08:41
For learning purposes I'd like to study an open source expert system, in particular one that can reason and explain it's reasoning. Which ones do you know? Some open source expert systems / expert systems tools (tools you can use to write Expert Systems) include C Language Integrated Production System (CLIPS) , CLIPS is an enviroment used to make rule or o bject based expert systems Python Knowledge Engine Pyke , Pyke allows you to use Logic Programming to make expert systems in Python OpenExpert PHP Expert System Tool mainly focused on application for Legal Expert Systems. d3web is Java

Number equality test fails in CLIPS pattern matching?

六眼飞鱼酱① 提交于 2019-12-02 12:32:44
问题 I have this following rule in my CLIPS file: (defrule check-final (declare (salience 12)) ?scnt <- (set-count (value ?v) (class ?c)) (test (= ?v ?*total*)) => (printout T ?*total* " == " ?v crlf) ) And I get the following strange output: CLIPS>(run) 14 == 9 5 == 2 How is this possible ???? 回答1: Pattern matching for this rule occurs whenever the fact set-count is asserted or modified. The rule is fired some time afterwards, during the call to run . These two processes can be widely separated

Number equality test fails in CLIPS pattern matching?

你。 提交于 2019-12-02 05:20:53
I have this following rule in my CLIPS file: (defrule check-final (declare (salience 12)) ?scnt <- (set-count (value ?v) (class ?c)) (test (= ?v ?*total*)) => (printout T ?*total* " == " ?v crlf) ) And I get the following strange output: CLIPS>(run) 14 == 9 5 == 2 How is this possible ???? Pattern matching for this rule occurs whenever the fact set-count is asserted or modified. The rule is fired some time afterwards, during the call to run . These two processes can be widely separated in time. The value of ?*v* can of course change during that long period of time. The key is to realize that