缺少从 Weka 依赖项导入
Missing import from Weka dependency
正在尝试使用 Weka 的隔离林。将此版本添加到 pom:https://mvnrepository.com/artifact/nz.ac.waikato.cms.weka/weka-dev/3.9.5
尝试导入:weka.classifiers.misc.IsolationForest
就像在文档中一样 https://weka.sourceforge.io/doc.packages/isolationForest/weka/classifiers/misc/IsolationForest.html
打开了一些 .jars stable/dev。找不到 iForest(不在 misc 或 elsewehere)。在我的 .m2 .jar 中都没有。
我错过了什么?提前感谢您的帮助!
IsolationForest 是 Weka 包的一部分,而不是核心 Weka 工件的一部分(Weka 的包管理器使用它自己的 ClassLoader 加载 Weka 包 - 只要您安装了包)。
如果您想直接使用此 class,您需要将 IsolationForest artifact 添加到您的 pom.xml
:
<dependency>
<groupId>nz.ac.waikato.cms.weka</groupId>
<artifactId>isolationForest</artifactId>
<version>1.0.2</version>
</dependency>
正在尝试使用 Weka 的隔离林。将此版本添加到 pom:https://mvnrepository.com/artifact/nz.ac.waikato.cms.weka/weka-dev/3.9.5
尝试导入:weka.classifiers.misc.IsolationForest
就像在文档中一样 https://weka.sourceforge.io/doc.packages/isolationForest/weka/classifiers/misc/IsolationForest.html
打开了一些 .jars stable/dev。找不到 iForest(不在 misc 或 elsewehere)。在我的 .m2 .jar 中都没有。
我错过了什么?提前感谢您的帮助!
IsolationForest 是 Weka 包的一部分,而不是核心 Weka 工件的一部分(Weka 的包管理器使用它自己的 ClassLoader 加载 Weka 包 - 只要您安装了包)。
如果您想直接使用此 class,您需要将 IsolationForest artifact 添加到您的 pom.xml
:
<dependency>
<groupId>nz.ac.waikato.cms.weka</groupId>
<artifactId>isolationForest</artifactId>
<version>1.0.2</version>
</dependency>