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>>

    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>>
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> deserializeDataset​(int openMLId)  
      static 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 java.io.File getArffFileOfOpenMLID​(int id)  
      static 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)  
      • 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

      • deserializeDataset

        public static 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 static 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 static 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 static 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