public class Trace extends Object
This class provides a logger and logging format
for the neural network trainers. To use the tracing or logging functionality within
the neural network classes calling programs create a file or console handler for
the logger.
The level of tracing detail is controlled using Java's FINE
,
FINER
, and FINEST
logging levels.
The levels of output yield the following:
Level | Output |
FINE | A message on entering
and exiting method train , a message entering and
exiting stages, if more than one, and a summary report (based on
Network.computeStatistics ) upon completion of training. Any
error messages issued by the underlying solver are also included. |
FINER | All of the messages in
FINE , a message entering and exiting each epoch and
iteration in
stage I, the input settings, the value of the function being
minimized, a time stamp at the start of
each iteration in stage I and at the beginning and end of stage II,
and (if there is a stage II) a summary at the end of stage I.
Additionally, the log will display any error messages from the underlying
solver(s) being used, for example NonlinLeastSquares and
MinUnconMultiVar |
FINEST | All of the messages
in FINER and a table of the computed weights and
their gradient values. |
Constructor and Description |
---|
Trace() |
Modifier and Type | Method and Description |
---|---|
static Formatter |
getFormatter()
Returns the formatter.
|
static Logger |
getLogger(String name)
Returns a logger.
|
public static Logger getLogger(String name)
name
- a String
, the name of the source class or packageLogger
to be used for the classpublic static Formatter getFormatter()
Formatter
object containing the specific format for
the logging fileCopyright © 2020 Rogue Wave Software. All rights reserved.