mirror of
https://github.com/wassname/keras-contrib.git
synced 2026-06-27 16:10:11 +08:00
As discussed. The 'warning' is now just a print.
Test is adjusted to handle printing instead of throwing a warning.
This commit is contained in:
@@ -13,8 +13,8 @@ n_out = 11 # with 1 neuron dead, 1/11 is just below the threshold of 10% with v
|
||||
|
||||
def check_print(do_train, expected_warnings, nr_dead: int = None, perc_dead: float = None):
|
||||
"""
|
||||
Receive stdout to check if correct warning message is delivered
|
||||
:param perc_dead: as float, 10% should be written as 0.1
|
||||
Receive stdout to check if correct warning message is delivered.
|
||||
"""
|
||||
saved_stdout = sys.stdout
|
||||
out = io.StringIO()
|
||||
|
||||
Reference in New Issue
Block a user