Class Compatibility


  • public class Compatibility
    extends Object
    Checks the compatibility of datasets.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • Compatibility

        public Compatibility()
    • Method Detail

      • compareStrict

        public static String compareStrict​(weka.core.Instances data1,
                                           weka.core.Instances data2)
        Does not require the attribute names to match.
        Parameters:
        data1 - the first dataset in the comparison
        data2 - the second dataset in the comparison
        Returns:
        null if compatible, otherwise mismatch message
      • compareLenient

        public static String compareLenient​(weka.core.Instances data1,
                                            weka.core.Instances data2)
        Does not require the attribute names to match.
        Parameters:
        data1 - the first dataset in the comparison
        data2 - the second dataset in the comparison
        Returns:
        null if compatible, otherwise mismatch message
      • isCompatible

        public static String isCompatible​(weka.core.Instances data1,
                                          weka.core.Instances data2,
                                          boolean strict)
        Checks the compatibility of two datasets.
        Parameters:
        data1 - the first dataset
        data2 - the second dataset
        strict - if enabled, attribute names must match as well
        Returns:
        null if compatible, other mismatch message