Class OpenMLHelper


  • public class OpenMLHelper
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void createDataSetIndex​(int maxNumFeatures, int maxNumInstances)
      Creates a list of data sets by id in a file with caps for the maximum of features and instances.
      static java.util.List<java.lang.Integer> getDataSetsFromIndex()  
      static weka.core.converters.ConverterUtils.DataSource getDataSourceById​(int dataId)  
      static weka.core.Instances getInstancesById​(int dataId)
      Downloads the data set with the given id and returns the Instances file for it.
      static void setApiKey​(java.lang.String apiKey)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDataSetsFromIndex

        public static java.util.List<java.lang.Integer> getDataSetsFromIndex()
                                                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • getDataSourceById

        public static weka.core.converters.ConverterUtils.DataSource getDataSourceById​(int dataId)
                                                                                throws java.io.IOException
        Throws:
        java.io.IOException
      • getInstancesById

        public static weka.core.Instances getInstancesById​(int dataId)
                                                    throws java.io.IOException
        Downloads the data set with the given id and returns the Instances file for it. Will save the DataSetDescription and the Instances to the location specified in the Settings Class.
        Parameters:
        dataId -
        Returns:
        Throws:
        java.io.IOException - if something goes wrong while loading Instances from openml
      • createDataSetIndex

        public static void createDataSetIndex​(int maxNumFeatures,
                                              int maxNumInstances)
                                       throws java.lang.Exception
        Creates a list of data sets by id in a file with caps for the maximum of features and instances. Caps ignored if set to values <= 0.
        Parameters:
        maxNumFeatures -
        maxNumInstances -
        Throws:
        java.lang.Exception
      • setApiKey

        public static void setApiKey​(java.lang.String apiKey)