Monday 15 July 2013

machine learning - Weka GUI tool output in a Java snippet -


I am using the We_KO tool for learning SMO. How do I create a forecast in the Java snippet? When I set the GUI tool to true with the "buildLogisticModels" set, I get the following output. Which method in the evaluation class produces output? See sample below, where col1 - Example #; Col2 = genuine; Col3 = Estimated; Col4 = Error; Col5 = Forecast:

  1 1: 1 0.781 2 1: 1 1: 1 0.644 3 1: 1 1: 1 0.742 4 1: 1 1: 1 0.748 5 1: 1 1: 1 0.810 6 2: 0 1: 1 + 0.864 7 2: 0 1: 1 + 0.845 8 2: 0 1: 1 + 0.722   

In addition to this, Is the Binary SMO Output in Java? Ex:

  • 1 * & lt; 0.307692 0.588235 03333333 & gt; * X]
  • 1 * & lt; 0.461538 0.529412 0.5> * X]
  • 1 * & lt; 0.384615 0.588235 0.25 0.333333 & gt; * X]
  • 1 * & lt; 0.230769 0.705882 0.25 0.666667 & gt; * X]
  • 1 * & lt; 0.615385 0.764706 0.25 0.333333 & gt; * X]

    Thanks in advance.

    Definitely this is a way to use the Weka API in a Java program. If you can just add the reference to the weka.jar file and install the correct object, then find the API to find the necessary methods. Take a look here to get started with this. IMO I would like to go to API route because only the command line means hacking.



No comments:

Post a Comment