Skip to content

Commit f7e622e

Browse files
committed
remove debug code
1 parent 4805865 commit f7e622e

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

P1B3/p1b3_baseline.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -303,14 +303,6 @@ def main():
303303
model.add(Dropout(args.drop))
304304
model.add(Dense(out_dim))
305305

306-
def my_acc(y_true, y_pred):
307-
# print(y_true)
308-
# print(y_pred)
309-
y_true_class = np.digitize(y_true, args.category_cutoffs)
310-
y_pred_class = np.digitize(y_pred, args.category_cutoffs)
311-
acc = metrics.categorical_accuracy(y_true_class, y_pred_class)
312-
return {'acc': acc}
313-
314306
model.summary()
315307
model.compile(loss=args.loss, optimizer=args.optimizer)
316308

0 commit comments

Comments
 (0)