Class WekaAlgorithm


  • public class WekaAlgorithm
    extends Object
    • Constructor Detail

      • WekaAlgorithm

        public WekaAlgorithm()
    • Method Detail

      • getVersion

        public static String getVersion​(String algorithm)
      • containsEscapableCharacter

        public static boolean containsEscapableCharacter​(String value)
      • getSetupId

        public static Integer getSetupId​(String classifierName,
                                         String option_str,
                                         org.openml.apiconnector.io.OpenmlConnector apiconnector)
                                  throws Exception
        Throws:
        Exception
      • getImplementationId

        public static int getImplementationId​(org.openml.apiconnector.xml.Flow implementation,
                                              weka.classifiers.Classifier classifier,
                                              org.openml.apiconnector.io.OpenmlConnector apiconnector)
                                       throws Exception
        Throws:
        Exception
      • serializeClassifier

        public static org.openml.apiconnector.xml.Flow serializeClassifier​(weka.core.OptionHandler classifierOrig,
                                                                           String[] tags)
                                                                    throws Exception
        Throws:
        Exception
      • deserializeClassifier

        public static weka.core.OptionHandler deserializeClassifier​(org.openml.apiconnector.xml.Flow f)
                                                             throws Exception
        Throws:
        Exception
      • deserializeSetup

        public static weka.core.OptionHandler deserializeSetup​(org.openml.apiconnector.xml.SetupParameters setup,
                                                               org.openml.apiconnector.xml.Flow f,
                                                               boolean defaultParameters)
                                                        throws Exception
        Throws:
        Exception
      • getParameterSetting

        public static ArrayList<org.openml.apiconnector.xml.Run.Parameter_setting> getParameterSetting​(String[] parameters,
                                                                                                       org.openml.apiconnector.xml.Flow implementation)
                                                                                                throws Exception
        Throws:
        Exception
      • classifierSerializedToFile

        public static File classifierSerializedToFile​(weka.classifiers.Classifier cls,
                                                      Integer task_id)
                                               throws IOException
        Throws:
        IOException
      • splitEvaluatorToMap

        public static Map<String,​Object> splitEvaluatorToMap​(weka.experiment.SplitEvaluator se,
                                                                   Object[] results)