From commits-return-87436-archive-asf-public=cust-asf.ponee.io@mxnet.incubator.apache.org Sat Jun 1 21:20:31 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id B771A18061A for ; Sat, 1 Jun 2019 23:20:30 +0200 (CEST) Received: (qmail 782 invoked by uid 500); 1 Jun 2019 21:20:30 -0000 Mailing-List: contact commits-help@mxnet.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mxnet.incubator.apache.org Delivered-To: mailing list commits@mxnet.incubator.apache.org Received: (qmail 773 invoked by uid 99); 1 Jun 2019 21:20:30 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Jun 2019 21:20:30 +0000 From: GitBox To: commits@mxnet.apache.org Subject: [GitHub] [incubator-mxnet] szha commented on a change in pull request #15106: NER example: fix metrics computation Message-ID: <155942403001.7081.894293458459822567.gitbox@gitbox.apache.org> Date: Sat, 01 Jun 2019 21:20:30 -0000 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit szha commented on a change in pull request #15106: NER example: fix metrics computation URL: https://github.com/apache/incubator-mxnet/pull/15106#discussion_r289618664 ########## File path: example/named_entity_recognition/src/ner.py ########## @@ -225,6 +231,8 @@ def train(train_iter, val_iter): train_iter, val_iter, word_to_index, char_to_index, entity_to_index = build_iters(args.data_dir, args.max_records, args.train_fraction, args.batch_size, args.buckets) + logging.getLogger().info("validation iterator: %s" % (val_iter)) Review comment: ```suggestion logging.info("validation iterator: %s, val_iter) ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: users@infra.apache.org With regards, Apache Git Services