Package ai.libs.jaicore.ml.openml
Class OpenMLHelper
- java.lang.Object
-
- ai.libs.jaicore.ml.openml.OpenMLHelper
-
public class OpenMLHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateDataSetIndex(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.DataSourcegetDataSourceById(int dataId)static weka.core.InstancesgetInstancesById(int dataId)Downloads the data set with the given id and returns the Instances file for it.static voidsetApiKey(java.lang.String apiKey)
-
-
-
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.IOExceptionDownloads the data set with the given id and returns the Instances file for it. Will save theDataSetDescriptionand the Instances to the location specified in theSettingsClass.- 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.ExceptionCreates 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)
-
-