Class WekaInstancesUtil


  • public class WekaInstancesUtil
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static weka.core.Instances createDatasetFromSchema​(org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema)  
      static weka.core.Instances datasetToWekaInstances​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> dataset)  
      static org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema extractSchema​(weka.core.Instances dataset)  
      static weka.core.Instance transformInstanceToWekaInstance​(org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema, org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance instance)  
      static org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute transformWEKAAttributeToAttributeType​(weka.core.Attribute att)  
      • Methods inherited from class java.lang.Object

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

      • extractSchema

        public static org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema extractSchema​(weka.core.Instances dataset)
      • datasetToWekaInstances

        public static weka.core.Instances datasetToWekaInstances​(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> dataset)
                                                          throws org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException,
                                                                 java.lang.InterruptedException
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException
        java.lang.InterruptedException
      • createDatasetFromSchema

        public static weka.core.Instances createDatasetFromSchema​(org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema)
                                                           throws org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException
      • transformWEKAAttributeToAttributeType

        public static org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute transformWEKAAttributeToAttributeType​(weka.core.Attribute att)
      • transformInstanceToWekaInstance

        public static weka.core.Instance transformInstanceToWekaInstance​(org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema,
                                                                         org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance instance)
                                                                  throws org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException
        Throws:
        org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException