Class TrainValidateTestSplit

    • Field Detail

      • m_TrainPercentage

        protected double m_TrainPercentage
        the train percentage.
      • m_ValidatePercentage

        protected double m_ValidatePercentage
        the validate percentage.
      • m_PreserveOrder

        protected boolean m_PreserveOrder
        whether to preserve the order.
    • Constructor Detail

      • TrainValidateTestSplit

        public TrainValidateTestSplit()
    • Method Detail

      • setTrainPercentage

        public void setTrainPercentage​(double value)
        Sets the split percentage for training.
        Parameters:
        value - the percentage (0-1)
      • getTrainPercentage

        public double getTrainPercentage()
        Returns the split percentage for training.
        Returns:
        the percentage (0-1)
      • trainPercentageTipText

        public String trainPercentageTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setValidatePercentage

        public void setValidatePercentage​(double value)
        Sets the split percentage for validation.
        Parameters:
        value - the percentage (0-1)
      • getValidatePercentage

        public double getValidatePercentage()
        Returns the split percentage for validation.
        Returns:
        the percentage (0-1)
      • validatePercentageTipText

        public String validatePercentageTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • setPreserveOrder

        public void setPreserveOrder​(boolean value)
        Sets whether to preserve the order.
        Parameters:
        value - true if to preserve order
      • getPreserveOrder

        public boolean getPreserveOrder()
        Returns whether to preserve the order.
        Returns:
        true if to preserve order
      • preserveOrderTipText

        public String preserveOrderTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • split

        protected com.github.fracpete.javautils.struct.Struct2<String[],​String[]> split​(String[] data,
                                                                                              double percentage)
        Splits the data using the specified percentage.
        Parameters:
        data - the data to use
        Returns:
        the generated container