@requires_sklearn
def test_gat_plot_times():
 gat = _get_data()
 gat.plot_times(gat.train_times_['times'][0])
 gat.plot_times(gat.train_times_['times'])
 n_times = len(gat.train_times_['times'])
 colors = np.tile(['r', 'g', 'b'], int(np.ceil((n_times / 3))))[:n_times]
 gat.plot_times(gat.train_times_['times'], color=colors)
 assert_raises(ValueError, gat.plot_times, (-1.0))
 assert_raises(ValueError, gat.plot_times, 1)
 assert_raises(ValueError, gat.plot_times, 'diagonal')
 del gat.scores_
 assert_raises(RuntimeError, gat.plot)

@ requires_sklearn def test_gat_plot_times ( ) : gat = _get_data ( ) gat . plot_times ( gat . train_times_ [ 'times' ] [ 0 ] ) gat . plot_times ( gat . train_times_ [ 'times' ] ) n_times = len ( gat . train_times_ [ 'times' ] ) colors = np . tile ( [ 'r' , 'g' , 'b' ] , int ( np . ceil ( ( n_times / 3 ) ) ) ) [ : n_times ] gat . plot_times ( gat . train_times_ [ 'times' ] , color = colors ) assert_raises ( ValueError , gat . plot_times , ( - 1.0 ) ) assert_raises ( ValueError , gat . plot_times , 1 ) assert_raises ( ValueError , gat . plot_times , 'diagonal' ) del gat . scores_ assert_raises ( RuntimeError , gat . plot )
test gat times plot .