title: how to generate rules from decision tree in data mining?
body: <p>I have code to create decision tree from data set. i am using weather data set in weka examples. how can i generate the rules from the decision tree in java?</p>
  
  <p>Data set::</p>
  
  <pre><code>@relation weather
  
  @attribute outlook {sunny, overcast, rainy}
  @attribute temperature real
  @attribute humidity real
  @attribute windy {TRUE, FALSE}
  @attribute play {yes, no}
  
  @data
  sunny,85,85,FALSE,no
  sunny,80,90,TRUE,no
  overcast,83,86,FALSE,yes
  rainy,70,96,FALSE,yes
  rainy,68,80,FALSE,yes
  rainy,65,70,TRUE,no
  overcast,64,65,TRUE,yes
  sunny,72,95,FALSE,no
  sunny,69,70,FALSE,yes
  rainy,75,80,FALSE,yes
  sunny,75,70,TRUE,yes
  overcast,72,90,TRUE,yes
  overcast,81,75,FALSE,yes
  rainy,71,91,TRUE,no
  </code></pre>