weka

Weka: How to get the probabilities of each class for the test instances

六月ゝ 毕业季﹏ 提交于 2020-01-01 03:43:07
问题 In the case of Weka's Explorer, is there any way to get the class probabilities of the test instances as classified by a Naive Bayes' classifier? 回答1: In Weka Explorer on the Classify tab, click on More options... and tick Output predictions . Then Start the training and testing and the result shows you the probabilities of assigning each class for each test instance. 来源: https://stackoverflow.com/questions/10868233/weka-how-to-get-the-probabilities-of-each-class-for-the-test-instances

数据挖掘优秀工具对比

烈酒焚心 提交于 2019-12-31 16:49:35
https://www.cnblogs.com/Yuanjing-Liu/p/9391964.html 目录 1、数据挖掘工具对比 2、Rapid Miner 3、Orange 4、Weka 4.1 介绍 4.2 使用准备 4.3 主要功能与使用 4.4 优缺点 4.5 开发资源 5、KNIME 5.1 介绍 5.2 主要功能与使用 5.3 优缺点 5.4 开发资源 6 Apache Mahout 6.1 简介 6.2 主要特性 6.3 Mahout安装、配置 6.4 使用简单示例验证mahout 6.5 优缺点 文献 正文 回到顶部 1、数据挖掘工具对比 数据来源: Top 15 Best Free Data Mining Tools: The Most Comprehensive List — Software Testing Help 回到顶部 2、 Rapid Miner 回到顶部 3、Orange 回到顶部 4、Weka 4.1 介绍 Weka的全名是怀卡托智能分析环境(Waikato Environment for Knowledge Analysis),同时weka也是新西兰的一种鸟名,而Weka的主要开发者来自新西兰。Weka作为一个公开的数据挖掘工作平台,集合了大量能承担数据挖掘任务的机器学习算法,包括对数据进行预处理,分类,回归、聚类

Weka: How do I get the prediction value in java for a test instance?

混江龙づ霸主 提交于 2019-12-31 07:14:19
问题 I have successfully trained a classifier (bayesnet) and constructed a test set (ARFF-format), which has one instance, with one missing value. Evaluation eTest = new Evaluation(trainingInstance); eTest.evaluateModel(bayes_Classifier, testInstance); How can I access the prediction for the missing value? I have tested both ARFF structures (training & Test) with the GUI. They work. I simply do not know, how to access the prediction value... 回答1: You want to use eTest.evaluateModelOnce() which

How to calculate the threshold value for numeric attributes in Quinlan's C4.5 algorithm?

≯℡__Kan透↙ 提交于 2019-12-30 04:57:26
问题 I am trying to find how the C4.5 algorithm determines the threshold value for numeric attributes. I have researched and can not understand, in most places I've found this information: The training samples are first sorted on the values of the attribute Y being considered. There are only a finite number of these values, so let us denote them in sorted order as {v1,v2, …,vm}. Any threshold value lying between vi and vi+1 will have the same effect of dividing the cases into those whose value of

How do I use a JSON file with weka

北城以北 提交于 2019-12-30 04:33:11
问题 I have a JSON file and want to open the data in weka, but when I do, I get the following error: Looking around on the mailing list, there are a few questions about JSON, but TL;DR except that I noticed talk of JSON in the "format weka expects". Of course, there was no mention of what that format is. About to take a dive in the source, but I hope SO users can help before I spend too much time on this. 回答1: To gain an understanding about the format of the JSON object and its relationship to

How to test existing model with new instance in weka, using java code?

*爱你&永不变心* 提交于 2019-12-30 00:16:15
问题 I have a .model file of one of the classifier which I got through Weka GUI. Now I would like to test this model on some instance. Can anyone tell me how to do this ? Classifier cModel = (Classifier)new NaiveBayes(); cModel.buildClassifier(isTrainingSet); I don't want to build classifier again and again like in this code. How to do this using .model file? // Test the model Evaluation eTest = new Evaluation(isTrainingSet); eTest.evaluateModel(cModel, isTrainingSet); 回答1: Combining your code

Machine learning for Java developers, Part 1: Algorithms for machine learning

大城市里の小女人 提交于 2019-12-27 12:32:36
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Self-driving cars, face detection software, and voice controlled speakers all are built on machine learning technologies and frameworks--and these are just the first wave. Over the next decade, a new generation of products will transform our world, initiating new approaches to software development and the applications and products that we create and use. As a Java developer, you want to get ahead of this curve, especially because tech companies are beginning to seriously invest in machine learning. What you learn today, you can build on over the next five

How to test a single test case in Weka, entered by a User?

こ雲淡風輕ζ 提交于 2019-12-25 13:25:07
问题 I am fairly new to Weka. I am doing a code where I am built a J48 to predict outcome of students' results. Now I have made attempts to test the model using an ARFF file but I want to achieve a classification of a test case which is entered by a user. E.g. I want the user to enter two numeric values which are marks obtained in two subjects i.e. CS and Maths and then predict their final outcome i.e. PASS or FAIL. Outcome would be the class variable. I dont know how to create an instance to

Java/Weka - Need to create unique instances

落爺英雄遲暮 提交于 2019-12-25 11:55:26
问题 I wonder if there is a method that checks whether my new instance has been already created and added to my instances in Java... Like ; Instance instance = new Instance(i, vals); if(instances.contains(instance) == false) { //or hasInstance maybe instances.add(instance); } 回答1: I understand, that you want for two objects x1 and x2 with x1.equals(x2) that x1 is the same instance ( x1 == x2 ). One needs to do something like this: private Map<Instance, Instance> identityMap = new HashMap<>();

Load Naïve Bayes model in java code using weka jar

北战南征 提交于 2019-12-25 08:28:44
问题 I have used weka and made a Naive Bayes classifier, by using weka GUI. Then I have saved this model by following this tutorial. Now I want to load this model through Java code but I am unable to find any way to load a saved model using weka. This is my requirement that I have to made model separately and then use it in a separate program. If anyone can guide me in this regard I will be thankful to you. 回答1: You can easily load a saved model in java using this command: Classifier myCls =