Class OpenmlWekaConnector

  • All Implemented Interfaces:
    Serializable

    public class OpenmlWekaConnector
    extends org.openml.apiconnector.io.OpenmlConnector
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.openml.apiconnector.io.OpenmlBasicConnector

        api_key, API_PART, OPENML_URL, verboseLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      weka.core.Instances getArffFromUrl​(int fileId)
      Downloads a file from OpenML and parses it as Instances object
      weka.core.Instances getDataset​(org.openml.apiconnector.xml.DataSetDescription dsd)
      Downloads a dataset from OpenML and parses it as Instances object
      weka.core.Instances getSplitsFromTask​(org.openml.apiconnector.xml.Task task)
      Downloads a data splits file from OpenML and parses it as Instances object
      • Methods inherited from class org.openml.apiconnector.io.OpenmlConnector

        dataFeaturesUpload, dataQualitiesUpload, dataUpload, flowUpload, runEvaluate, runTraceUpload, runUpload, studyUpload, taskUpload
      • Methods inherited from class org.openml.apiconnector.io.OpenmlBasicConnector

        dataDelete, dataFeatures, dataFeaturesUpload, dataGet, dataList, dataQualities, dataQualitiesList, dataqualitiesUnprocessed, dataQualitiesUpload, dataReset, datasetGet, datasetGetCsv, dataStatusUpdate, dataTag, dataUnprocessed, dataUntag, dataUpload, estimationProcedureGet, estimationProcedureList, evaluationList, evaluationRequest, fileUpload, flowDelete, flowExists, flowForceDelete, flowGet, flowTag, flowUntag, flowUpload, getApiKey, getApiUrl, getOpenmlFileUrl, getOpenmlFileUrl, getVerboselevel, getXSD, runDelete, runEvaluate, runGet, runList, runReset, runTag, runTrace, runTraceUpload, runUntag, runUpload, setApiKey, setupDelete, setupDifferences, setupDifferences, setupExists, setupParameters, setupTag, setupUntag, setVerboseLevel, studyAttach, studyDetach, studyGet, studyGet, studyGet, studyList, studyUpload, taskDelete, taskGet, taskInputs, taskList, taskSplitsGet, taskTag, taskUntag, taskUpload
    • Constructor Detail

      • OpenmlWekaConnector

        public OpenmlWekaConnector()
      • OpenmlWekaConnector

        public OpenmlWekaConnector​(String url,
                                   String api_key)
    • Method Detail

      • getDataset

        public weka.core.Instances getDataset​(org.openml.apiconnector.xml.DataSetDescription dsd)
                                       throws Exception
        Downloads a dataset from OpenML and parses it as Instances object
        Parameters:
        dsd - - the data set description object, as downloaded from openml
        Returns:
        the dataset file parsed as arff
        Throws:
        Exception - - Can be various things, but most notably a parsing exception when the file id is not valid arff
      • getSplitsFromTask

        public weka.core.Instances getSplitsFromTask​(org.openml.apiconnector.xml.Task task)
                                              throws Exception
        Downloads a data splits file from OpenML and parses it as Instances object
        Parameters:
        task - - the downloaded task object, as downloaded from openml
        Returns:
        the splits file parsed as arff
        Throws:
        Exception - - Can be various things, but most notably a parsing exception when the file id is not valid arff
      • getArffFromUrl

        public weka.core.Instances getArffFromUrl​(int fileId)
                                           throws Exception
        Downloads a file from OpenML and parses it as Instances object
        Parameters:
        fileId - - the openml file id
        Returns:
        the file parsed as arff
        Throws:
        Exception - - Can be various things, but most notably a parsing exception when the file id is not valid arff