public static ScoreKeeper [ ] scoreKeepers ( ScoringInfo [ ] scoring_history ) { ScoreKeeper [ ] sk = new ScoreKeeper [ scoring_history . length ] ; for ( int i = 0 ; i < sk . length ; ++ i ) { sk [ i ] = scoring_history [ i ] . cross_validation ? scoring_history [ i ] . scored_xval : scoring_history [ i ] . validation ? scoring_history [ i ] . scored_valid : scoring_history [ i ] . scored_train ; } return sk ; }
For a given array of ScoringInfo return an array of the cross - validation validation or training ScoreKeepers as available .