gpt4 book ai didi

linux - Jess 在 Linux 和 macOS 上没有或找不到 FuzzyVariable 包

转载 作者:太空宇宙 更新时间:2023-11-04 12:19:03 25 4
gpt4 key购买 nike

我正在 Mac 和 Linux 上使用秒差距、直径和温度单位做关于未知区域行星问题的家庭作业或学校作业/作业演示。我将 FuzzyVariable 应用于行星名称和单位。

我添加了(import nrc.fuzzy.*)

;Distância do Coruscant
(defglobal ?*gVarDistanciaDeCoruscant* = (new nrc.fuzzy.FuzzyVariable "distanciaDeCoruscant" 0.0 30000.0 "parsecs"))

;Temperatura dos Planetas
(defglobal ?*gVarTemperatura* = (new nrc.fuzzy.FuzzyVariable "temperatura" 0 8000 "K"))

;Planetas Vizinhos
(defglobal ?*gVarPlanetasVizinhos* = (new nrc.fuzzy.FuzzyVariable "distanciaPlanetasVizinhos" 0.0 400000.0 "d"))

;Raio em termos de unidades coruscantenses
(defglobal ?*gVarTamanho* = (new nrc.fuzzy.FuzzyVariable "tamanho" 0 500 "EU"))

;Quando o planeta foi descoberto
(defglobal ?*gVarDescobertaTempo* = (new nrc.fuzzy.FuzzyVariable "descoberta" 50000BBY 400ABY))

(call nrc.fuzzy.FuzzyValue setMatchThreshold 0.1)

而终端,Jess给出了错误:

Jess reported an error in routine new
while executing (new nrc.fuzzy.FuzzyVariable "distanciaDeCoruscant" 0.0 30000.0 "parsec")
while executing definition for defglobal ?*gVarDistanciaDeCoruscant*
while executing (batch "/Users/UNISAL/Documents/AI/StarWars.clp").
Message: Class nrc.fuzzy.FuzzyVariable not found.
Program text: ( defglobal ?*gVarDistanciaDeCoruscant* = ( new nrc.fuzzy.FuzzyVariable "distanciaDeCoruscant" 0.0 30000.0 "parsec" ) ) at line 26 in file /Users/UNISAL/Documents/AI/StarWars.clp.

Nested exception is:
nrc.fuzzy.FuzzyVariable

我认为 Mac 和 Linux 没有这个 Jess 包。是否可以添加兼容 Mac 和 Linux 的遗漏包?

我需要向我的老师提交我的作业/作业演示以获得好成绩。

您可以查看整个文档:https://gist.github.com/gusbemacbe/8ad836256edcfb5edbffe206cad6c9e8

最佳答案

基础 Jess 发行版不包括 FuzzyJ;您必须单独安装它,将其包含在类路径中,然后使用 FuzzyMain 而不是标准的 Jess.Main 启动。你的导师应该告诉你这一切。如果您没有 FuzzyJ,您可以从 Jess 网站的“用户贡献”页面下载它:http://www.jessrules.com/contributions/ .

关于linux - Jess 在 Linux 和 macOS 上没有或找不到 FuzzyVariable 包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46548031/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com