Questions tagged [j48]

J48 is an open source Java implementation of the C4.5 algorithm in the Weka data mining tool.

68 questions
4
votes
0 answers

Graphviz Visualizer in WEKA giving empty Grpahs

I was building a J48 tree on the famous iris dataset. I used weka 3.8 to build the tree. I also installed graphviz tree visualizer plugin. I use weka in windows 10. But when I try to visualize it shows me an empty graph. Can some one help me…
mathkid
  • 347
  • 3
  • 12
3
votes
1 answer

Transform from one decision tree (J48) classification to ensemble in python

I would like to implement the classification of the algorithm based on the paper. I have a single J48 (C4.5) decision tree (code mentioned down). I would like to run it for several (I_max) times over the dataset and calculate the C* = class…
Avi
  • 2,247
  • 4
  • 30
  • 52
3
votes
1 answer

Weka J48 classification not following tree

My original tree was much bigger, but since I'm stuck with this issue for quite some time I decided to try to simplify my tree. I Ended up with something like this: As you can see, I only have a single attribute called "LarguraBandaRede" with 3…
EduardoMaia
  • 591
  • 1
  • 4
  • 17
2
votes
1 answer

how to classify using j48 weka with information gain and random attribute selection?

I know that j48 decision tree uses gain ratio to select attribute for making tree. But i want to use information gain and random selection instead of gain ratio. In select attribute tab in Weka Explorer, I choose InfoGainAttributeEval and put start…
user6250685
2
votes
2 answers

How to interpret weka classification result J48

I need help to interpret result in weka using the J48 I dont know how to explain the result, I am using the dataset Heart Disease Data Set from http://archive.ics.uci.edu/ml/datasets/Heart+Disease And the J48 tree Please help me, with some points…
twister8
  • 23
  • 1
  • 6
2
votes
2 answers

Decision tree Analysis issue

I'm currently working on a problem with R. I want to apply the classification tree over a data set, but the result seems to be wrong since I've already solved the same problem using Weka, and I got different results. I got a data set contained in a…
Zak
  • 136
  • 6
2
votes
4 answers

J48 tree in R - train and test classification

I want to use train and test in J48 decision-tree on R. here is my code: library("RWeka") data <- read.csv("try.csv") resultJ48 <- J48(classificationTry~., data) summary(resultJ48) but I want to split my data into 70% train and 30% test, how can…
moshem
  • 99
  • 1
  • 1
  • 9
2
votes
1 answer

How to build a good training data set for machine learning and predictions?

I have a school project to make a program that uses the Weka tools to make predictions on football (soccer) games. Since the algorithms are already there (the J48 algorithm), I need just the data. I found a website that offers football game data for…
jhynjhon
  • 23
  • 4
2
votes
1 answer

What does the useLaplace parameter do in the WEKA j48 algorithm?

I am mining on a dataset using the j48 tree algorithm. I have been trying to understand what the useLaplace parameter does. The only thing I have to go by is this: Whether counts at leaves are smoothed based on LapLace which is just the…
Haych
  • 932
  • 13
  • 36
2
votes
2 answers

Properties and their values out of J48 tree (RWeka)

If you run the following: library(RWeka) data(iris) res = J48(Species ~., data = iris) res will be a list of class J48 inheriting from Weka_tree. If you print it R> res J48 pruned tree ------------------ Petal.Width <= 0.6: setosa…
Avi
  • 2,247
  • 4
  • 30
  • 52
1
vote
2 answers

How visualize j48 tree in weka

I have an output tree in weka but can't view it (right click ...). Is there a tool to generate the resulting tree in an understandable way from the copy of the log (figures)?
1
vote
1 answer

What does Number of leaves and Size of tree mean in Weka?

Could someone explain in plain English what the number of leaves and size of tree mean in Weka? I have made my decision tree, and this is what I got below, but I just need an explanation of what these values mean. Thank you. Number of leaves:…
user12502105
1
vote
0 answers

Show entropy values in J48 trees WEKA

I am quite new to Weka but what I am trying to do is to print the Entropy values for each split in my J48 trees. The command line I am using to train the tree is: java -classpath CLASSPATH:weka.jar weka.classifiers.trees.J48 -C 0.25 -M 2 -t…
shiva
  • 11
  • 1
1
vote
0 answers

ArrayIndexOutOfBoundsException in instance classification in java using weka

I am writing a program to classify a given test instance in to "positive" or "negative"; using j48 algorithm. I have created the model using Weka tool, and using it in my java program. My Java program public static void main(String[] args) { …
denny
  • 197
  • 1
  • 1
  • 11
1
vote
2 answers

Can I prevent the J48 classifier from splitting on the same field more than x times?

Using a dataset, Weka and the J48 classifier I've got the following tree: And it splits off a lot on 'NumTweets' on the right side. Can I prevent J48 from doing more than a specified amount of splits on one field? Because this is obviously…
user3394131
  • 199
  • 13
1
2 3 4 5