title: How to let J48 fit data
body: <p>I have a small question about the J48 from Weka. I run this algorithm from R, using RWeka. Probably an easy solution, but i can't seem to find it on the web. A very small example:</p>
  
  <pre><code>require(RWeka)
  Attr1 &lt;- as.factor(c('0302','0302','0320'))
  Attr2 &lt;- as.factor(c('2','1','1'))
  Target &lt;- as.factor(c('target1','target2','target3'))
  input &lt;- data.frame(Attr1,Attr2,Target)
  J48( Target ~ Attr1 + Attr2 , data= input, control= Weka_control(W=list(J48,m=1,U=T)))
  </code></pre>
  
  <p>I want the fit made by the J48 algorithm to fit on the data. This means I put the minimal items in the leafs to 1 and I dont prune the tree. I get the following output:</p>
  
  <pre><code>J48 pruned tree
  ------------------
  : target1 (3.0/2.0)
  Number of Leaves  :     1
  Size of the tree :  1
  </code></pre>
  
  <p>Why doesn't it make Attr1 = 0320 -> target3 or Attr2 = 2 -> target1?</p>