Menu

Obtaining a model classification xml file

Help
2015-12-16
2015-12-27
  • Wong Zhijie

    Wong Zhijie - 2015-12-16

    Pardon my question as I am very new to MIR in general, but I was going through the ACE 2.0 manual and I noticed I needed to have something called the model classification xml file before any training or classifying can be done. I can't find anywhere in the manual that says where to obtain this file and also when I attempt to train with the command java -jar ACE.jar -lfkey fkey.xml -lfvec fvec.xml -ltax tax.xml -train -learner SMO -sres test.model I get the following error:
    ERROR: ACE was unable to train the Classifier.
    ERROR: weka.classifiers.functions.SMO: Not enough training instances with class labels (required: 1, provided: 0)!

    java.lang.Exception: ACE was unable to train the Classifier.
    ERROR: weka.classifiers.functions.SMO: Not enough training instances with class labels (required: 1, provided: 0)!
    at ace.Coordinator.train(Coordinator.java:187)
    at ace.CommandLine.processRequests(CommandLine.java:476)
    at ace.Main.main(Main.java:47)

    I hope someone can point me in the right direction as right now I am completely stuck attempting to do anything with the features I have extracted from jAudio. Any help is greatly appreciated! :)

     
    • Daniel McEnnis

      Daniel McEnnis - 2015-12-18

      This is Cory McKay's baby. I'm cc him on the discussion.

      On Wed, Dec 16, 2015, 2:46 AM Wong Zhijie zcarified@users.sf.net wrote:

      Pardon my question as I am very new to MIR in general, but I was going
      through the ACE 2.0 manual and I noticed I needed to have something called
      the model classification xml file before any training or classifying can be
      done. I can't find anywhere in the manual that says where to obtain this
      file and also when I attempt to train with the command java -jar ACE.jar
      -lfkey fkey.xml -lfvec fvec.xml -ltax tax.xml -train -learner SMO -sres
      test.model I get the following error:
      ERROR: ACE was unable to train the Classifier.
      ERROR: weka.classifiers.functions.SMO: Not enough training instances with
      class labels (required: 1, provided: 0)!

      java.lang.Exception: ACE was unable to train the Classifier.
      ERROR: weka.classifiers.functions.SMO: Not enough training instances with
      class labels (required: 1, provided: 0)!
      at ace.Coordinator.train(Coordinator.java:187)
      at ace.CommandLine.processRequests(CommandLine.java:476)
      at ace.Main.main(Main.java:47)

      I hope someone can point me in the right direction as right now I am
      completely stuck attempting to do anything with the features I have
      extracted from jAudio. Any help is greatly appreciated! :)


      Obtaining a model classification xml file
      https://sourceforge.net/p/jaudio/discussion/558641/thread/7133a05c/?limit=25#e8d9


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/jaudio/discussion/558641/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       
  • Cory McKay

    Cory McKay - 2015-12-24

    You need this file in order to specify to ACE your ground truth model classifications when training a supervised classifier (like SVMs, in your case). You can also use this file to evaluate classifications of novel instances with a trained classifier, but it is of course optional in this latter case.

    You can get more information on this file type at (version 1.1 is used by jAudio):

    http://jmir.sourceforge.net/index_ACE_XML.html

    There’s a model file at:

    http://jmir.sourceforge.net/ace_xml_files/Classifications.xml

    You can write the classifications file by hand, or you can use jMIRUtilities to batch label instances:

    http://jmir.sourceforge.net/index_jMIRUtilities.html

    Hope this helps,
    Cory

     
  • Wong Zhijie

    Wong Zhijie - 2015-12-27

    Thanks Daniel for bringing Mr Cory McKay in to this topic and to Cory for giving it his attention!

    I managed to get Utilities to work out and I will continue to experiment with the rest as well to see which suits my needs more :)

     

Log in to post a comment.