Skip to content

Commit

Permalink
validate with variable batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
anaismoller committed Apr 3, 2020
1 parent f72df11 commit ef330d1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions supernnova/validation/validate_rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,7 @@ def get_predictions(settings, model_file=None):

# Batching stuff together
num_elem = len(list_data_test)
factor = (num_elem // 4) if settings.source_data == "photometry" else num_elem
num_batches = num_elem / min(factor,100000)
num_batches = num_elem / min(num_elem, settings.batch_size)
list_batches = np.array_split(np.arange(num_elem), num_batches)

# Prepare output arrays
Expand Down

0 comments on commit ef330d1

Please sign in to comment.