嘗試使用 Weka 的隔離森林。將此版本添加到 pom:https : //mvnrepository.com/artifact/nz.ac.waikato.cms.weka/weka-dev/3.9.5
試圖匯入:weka.classifiers.misc.IsolationForest就像在 doc https://weka.sourceforge.io/doc.packages/isolationForest/weka/classifiers/misc/IsolationForest.html
打開了一些 .jars stable/dev。找不到 iForest(不在雜項中或其他地方)。在我的 .m2 .jar 中都沒有。
Weka 倉庫https://svn.cms.waikato.ac.nz/svn/weka/tags/dev-3-9-5/packages/internal/isolationForest/src/main/java/weka/classifiers/misc/IsolationForest。爪哇
我錯過了什么?提前感謝您的任何幫助!
uj5u.com熱心網友回復:
IsolationForest 是 Weka 包的一部分,而不是核心 Weka 工件的一部分(Weka 的包管理器使用自己的 ClassLoader 加載 Weka 包 - 只要您安裝了這些包)。
如果你想直接使用這個類,你需要將IsolationForest 工件添加到你的pom.xml:
<dependency>
<groupId>nz.ac.waikato.cms.weka</groupId>
<artifactId>isolationForest</artifactId>
<version>1.0.2</version>
</dependency>
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/364544.html
