本文介绍了如何在java代码中使用weka.smote smapling算法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I have a question about the correct way to use the SMOTE sampling algorithm. I have been read a lot about this algorithm. I forced to use SMOTE within my code, so I can't use any tools like KNIME or WEKA. After few days in searching, I can say that there are two implementation of SMOTE, one in R language and other included in weka java library. I have downloaded the weka.dev.jar file and weka.core.jar file and used them in my code. Unfortunately I'm not expert enough in Java. Can anyone help me. I just need to use SMOTE with crossvalidation. and both SMOTE and crossvalidation are java clasess. But I failed to write a simple java class that create objects from these classes. The reaseon is that theses classes need another objects from other classes.
any help will be appreciated
我尝试过:
我已检查此链接中的代码
[]
但我无法弄清楚如何写一个简单的java类,只有
What I have tried:
I have checked codes in this link
Java Code Examples[^]
but I can't figured out how to write a simple java class with just
<pre lang="java">
public static void main()函数,可以使用SMOTE类。
public static void main() function that can use SMOTE class.
推荐答案
这篇关于如何在java代码中使用weka.smote smapling算法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!