@@ -72,8 +72,8 @@ def __init__(
72
72
accumulate_grad_batches = 1 ,
73
73
max_nb_epochs = None , # backward compatible, todo: remove in v0.8.0
74
74
min_nb_epochs = None , # backward compatible, todo: remove in v0.8.0
75
- max_num_epochs = 1000 ,
76
- min_num_epochs = 1 ,
75
+ max_epochs = 1000 ,
76
+ min_epochs = 1 ,
77
77
train_percent_check = 1.0 ,
78
78
val_percent_check = 1.0 ,
79
79
test_percent_check = 1.0 ,
@@ -111,8 +111,8 @@ def __init__(
111
111
:param int check_val_every_n_epoch: check val every n train epochs
112
112
:param bool fast_dev_run: runs full iteration over everything to find bugs
113
113
:param int accumulate_grad_batches: Accumulates grads every k batches
114
- :param int max_num_epochs :
115
- :param int min_num_epochs :
114
+ :param int max_epochs :
115
+ :param int min_epochs :
116
116
:param int train_percent_check: How much of train set to check
117
117
:param int val_percent_check: How much of val set to check
118
118
:param int test_percent_check: How much of test set to check
@@ -158,17 +158,17 @@ def __init__(
158
158
self .process_position = process_position
159
159
self .weights_summary = weights_summary
160
160
if max_nb_epochs is not None : # Backward compatibility
161
- warnings .warn ("`max_nb_epochs` has renamed to `max_num_epochs ` since v0.5.0"
161
+ warnings .warn ("`max_nb_epochs` has renamed to `max_epochs ` since v0.5.0"
162
162
" and will be removed in v0.8.0" , DeprecationWarning )
163
- if not max_num_epochs : # in case you did not set the proper value
164
- max_num_epochs = max_nb_epochs
165
- self .max_num_epochs = max_num_epochs
163
+ if not max_epochs : # in case you did not set the proper value
164
+ max_epochs = max_nb_epochs
165
+ self .max_epochs = max_epochs
166
166
if min_nb_epochs is not None : # Backward compatibility
167
- warnings .warn ("`min_nb_epochs` has renamed to `min_num_epochs ` since v0.5.0"
167
+ warnings .warn ("`min_nb_epochs` has renamed to `min_epochs ` since v0.5.0"
168
168
" and will be removed in v0.8.0" , DeprecationWarning )
169
- if not min_num_epochs : # in case you did not set the proper value
170
- min_num_epochs = min_nb_epochs
171
- self .min_num_epochs = min_num_epochs
169
+ if not min_epochs : # in case you did not set the proper value
170
+ min_epochs = min_nb_epochs
171
+ self .min_epochs = min_epochs
172
172
if nb_sanity_val_steps is not None : # Backward compatibility
173
173
warnings .warn ("`nb_sanity_val_steps` has renamed to `num_sanity_val_steps` since v0.5.0"
174
174
" and will be removed in v0.8.0" , DeprecationWarning )
@@ -183,7 +183,7 @@ def __init__(
183
183
self .fast_dev_run = fast_dev_run
184
184
if self .fast_dev_run :
185
185
self .num_sanity_val_steps = 1
186
- self .max_num_epochs = 1
186
+ self .max_epochs = 1
187
187
m = '''
188
188
Running in fast_dev_run mode: will run a full train,
189
189
val loop using a single batch
0 commit comments