Skip to content

Commit

Permalink
Incorporated requested changes by cwmeijer NLeSC#147
Browse files Browse the repository at this point in the history
dafnevk committed Aug 31, 2017
1 parent bb8f5ab commit 9cea75d
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions html/js/flattenJson.js
Original file line number Diff line number Diff line change
@@ -2,6 +2,7 @@ var flattenModels = function(obj){
var output = [];
for(var modelNr = 0; modelNr<obj.length; modelNr++) {
model = obj[modelNr];
// For backwards compatibility with data generated with version <=1.0.1
let val_metric = model.val_metric ? model.val_metric : model.val_acc;
let train_metric = model.train_metric? model.train_metric : model.train_acc;
for(var iteration=0; iteration<val_metric.length; iteration++){
2 changes: 1 addition & 1 deletion mcfly/find_architecture.py
Original file line number Diff line number Diff line change
@@ -80,7 +80,7 @@ def train_models_on_samples(X_train, y_train, X_val, y_val, models,
print('Training model %d' % i, model_types)
model_metrics = [get_metric_name(name) for name in model.metrics]
if metric_name not in model_metrics:
raise ValueError('Invalid metric, the model should be compiled with the same metric!')
raise ValueError('Invalid metric. The model was not compiled with {} as metric'.format(metric_name))
if early_stopping:
callbacks = [EarlyStopping(monitor='val_loss', patience=0, verbose=verbose, mode='auto')]
else:

0 comments on commit 9cea75d

Please sign in to comment.