首页 > TAG信息列表 > expert-system

java-Drools:insertLogical和收回

这是我先前的question的后续操作.我有以下形式的决策树: 我想将其转换为Drools Expert中的规则. insertLogical的使用时间为proposed.Drools文档中关于insertLogical的信息为this: insertLogical(new Something()); is similar to insert, but the object will be automatical

如何使用PyClips获取规则激活来调用python函数

我正在尝试使用PyClips,我希望将它与Python紧密集成,以便在激活规则时调用python函数. 这是我到目前为止: import clips def addf(a, b): return a + b clips.RegisterPythonFunction(addf) clips.Build(""" (defrule duck (animal-is duck) => (assert (sound-is qua

从剪辑专家系统使用Python函数

使用PyClips,我正在尝试在Clips中构建规则,从Python解释器动态检索数据.为此,我注册了the manual中概述的外部函数. 下面的代码是问题的玩具示例.我这样做是因为我有一个带有大量数据的应用程序,以SQL数据库的形式,我想使用Clips推理.但是,我不想浪费时间将所有这些数据转换为Clips