Class OpenMLDatasetReader

  • All Implemented Interfaces:
    org.api4.java.ai.ml.core.dataset.serialization.IDatasetDeserializer<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>, org.api4.java.common.control.ILoggingCustomizable

    public class OpenMLDatasetReader
    extends java.lang.Object
    implements org.api4.java.ai.ml.core.dataset.serialization.IDatasetDeserializer<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>, org.api4.java.common.control.ILoggingCustomizable
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(int openMLId)  
      org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(int openMLId, java.lang.String targetAttribute)  
      org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(org.api4.java.ai.ml.core.dataset.descriptor.IDatasetDescriptor descriptor)  
      static org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> get​(int openmlid)  
      java.io.File getArffFileOfOpenMLID​(int id)  
      java.lang.String getLoggerName()  
      java.util.List<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>> loadTaskFold​(int openmlTaskID, int fold)  
      void setLoggerName​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

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

      • OpenMLDatasetReader

        public OpenMLDatasetReader()
    • Method Detail

      • get

        public static org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> get​(int openmlid)
                                                                                                                                             throws org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
      • deserializeDataset

        public org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(int openMLId)
                                                                                                                                                     throws org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
      • deserializeDataset

        public org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(int openMLId,
                                                                                                                                                            java.lang.String targetAttribute)
                                                                                                                                                     throws org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
      • getArffFileOfOpenMLID

        public java.io.File getArffFileOfOpenMLID​(int id)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deserializeDataset

        public org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(org.api4.java.ai.ml.core.dataset.descriptor.IDatasetDescriptor descriptor)
                                                                                                                                                     throws org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException,
                                                                                                                                                            java.lang.InterruptedException
        Specified by:
        deserializeDataset in interface org.api4.java.ai.ml.core.dataset.serialization.IDatasetDeserializer<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>>
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.DatasetDeserializationFailedException
        java.lang.InterruptedException
      • loadTaskFold

        public java.util.List<org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance>> loadTaskFold​(int openmlTaskID,
                                                                                                                                                                      int fold)
                                                                                                                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getLoggerName

        public java.lang.String getLoggerName()
        Specified by:
        getLoggerName in interface org.api4.java.common.control.ILoggingCustomizable
      • setLoggerName

        public void setLoggerName​(java.lang.String name)
        Specified by:
        setLoggerName in interface org.api4.java.common.control.ILoggingCustomizable