public class OpenMLHelper
extends java.lang.Object
| Constructor and Description |
|---|
OpenMLHelper() |
| Modifier and Type | Method and 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 |
main(java.lang.String[] args) |
static void |
setApiKey(java.lang.String apiKey) |
public static java.util.List<java.lang.Integer> getDataSetsFromIndex()
throws java.io.IOException
java.io.IOExceptionpublic static weka.core.converters.ConverterUtils.DataSource getDataSourceById(int dataId)
throws java.io.IOException
java.io.IOExceptionpublic static weka.core.Instances getInstancesById(int dataId)
throws java.io.IOException
DataSetDescription and
the Instances to the location specified in the
Settings Class.dataId - java.io.IOException - if something goes wrong while loading Instances from openmlpublic static void createDataSetIndex(int maxNumFeatures,
int maxNumInstances)
throws java.lang.Exception
maxNumFeatures - maxNumInstances - java.lang.Exceptionpublic static void main(java.lang.String[] args)
public static void setApiKey(java.lang.String apiKey)