Class InstancesHelper


  • public class InstancesHelper
    extends Object
    • Constructor Detail

      • InstancesHelper

        public InstancesHelper()
    • Method Detail

      • setTargetAttribute

        public static void setTargetAttribute​(weka.core.Instances instances,
                                              String classAttribute)
                                       throws Exception
        Throws:
        Exception
      • getAttributeIndex

        public static int getAttributeIndex​(weka.core.Instances instances,
                                            String attribute)
                                     throws Exception
        Throws:
        Exception
      • getAttributes

        public static List<String> getAttributes​(weka.core.Instances dataset)
      • getDatasetFromTask

        public static weka.core.Instances getDatasetFromTask​(org.openml.apiconnector.io.OpenmlConnector apiconnector,
                                                             org.openml.apiconnector.xml.Task task)
                                                      throws Exception
        Throws:
        Exception