
  tteesstt -- tteessttss tthhee nneettwwoorrkk oonn tthhee tteessttiinngg sseett

  UUSSAAGGEE

        test [<num-examples>] [-noreset]

  DDEESSCCRRIIPPTTIIOONN

  This runs the network (forward pass only) on examples in the testing set
  and accumulates the overall error. If there is no testing set, the training
  set is used. The total error is stored in the network's error field. A
  small report is printed to the terminal. Note that the report is no longer
  contained in the command's return value.

  In addition to printing the report, the numbers in the report are also
  stored in a global array called Test. You can access the fields in the
  array to easily retrieve the results of the test. The following are the
  available fields:

  * nnuummEExxaammpplleess: The number of examples on which testing was done.
  * nnuummTTiicckkss: The total number of ticks in those examples.
  * ttoottaallEErrrroorr: The total error across all examples.
  * eexxaammpplleeEErrrroorr: The total error per example.
  * ttiicckkEErrrroorr: The total error per tick.
  * ttoottaallCCoosstt: The total unit output cost for the network.
  * ttiicckkCCoosstt: The total unit output cost divided by the number of ticks.
  * eexxaammpplleessCCoorrrreecctt: The number of examples on which the output groups'
    criteria (such as STANDARD_CRIT or MAX_CRIT) were met.
  * ppeerrcceennttCCoorrrreecctt: The percentage of examples for which the criteria were
    met.

  If the network has more than one output group, it prints the error and cost
  values for the network as a whole as well as for each output group. The
  error values for the individual groups are stored in the Test array as
  well. The values for the groups are accessed with the name of the group,
  followed by a . and then the field name. For example, the totalError for
  group output1 is stored in Test(output1.totalError).

  The default behavior is to reset the testing set and run every example in
  it. This is also the behavior if a num-examples value of 0 is given.
  Otherwise, the testing set is not reset and only the next num-examples will
  be processed. This may be necessary if the testing set is in PIPE mode. The
  -noreset flag prevents the network's overall error from being reset to 0.0
  prior to testing.

  EEXXAAMMPPLLEESS

  To test the network, resetting the error before starting:

        lens> test
        Test results on 100 examples, 700 ticks:
                             Network
        Error total:         46.5343
        Error per example:   0.46534
        Error per tick:      0.06648
        Unit cost per tick:  2.33553
        Output unit criterion reached on 92 examples (92.00%)

        lens> puts $Test(tickError)
        0.00664776

  SSEEEE AALLSSOO

  _t_r_a_i_n, _d_o_E_x_a_m_p_l_e, _e_x_a_m_p_l_e_S_e_t_M_o_d_e

  ---------------------------------------------------------------------------
    Last modified: Mon Mar 1 14:43:22 EST 1999

