public function get_training_ranges() {
        // Cloning the array.
        $trainingranges = $this->ranges;

        foreach ($trainingranges as $rangeindex => $range) {
            if (!$this->ready_to_train($range)) {
                unset($trainingranges[$rangeindex]);
            }
        }

        return $trainingranges;
    }
public function get_training_ranges() {
        // Cloning the array.
        $trainingranges = $this->ranges;

        foreach ($trainingranges as $rangeindex => $range) {
            if (!$this->ready_to_train($range)) {
                unset($trainingranges[$rangeindex]);
            }
        }

        return $trainingranges;
    }
public function get_training_ranges ( ) { // Cloning the array. $ trainingranges = $ this -> ranges ; foreach ( $ trainingranges as $ rangeindex => $ range ) { if ( ! $ this -> ready_to_train ( $ range ) ) { unset ( $ trainingranges [ $ rangeindex ] ) ; } } return $ trainingranges ; }
Overwritting as the last range may be for prediction.

@return array
Overwritting as the last range may be for prediction .