Class Trace

java.lang.Object
com.imsl.datamining.neural.Trace

public class Trace extends Object
Standardizes the output format for the neural network log files.

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:

LevelOutput
FINEA 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.
FINERAll 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
FINESTAll of the messages in FINER and a table of the computed weights and their gradient values.

See Also:
  • Constructor Details

    • Trace

      public Trace()
  • Method Details

    • getLogger

      public static Logger getLogger(String name)
      Returns a logger.
      Parameters:
      name - a String, the name of the source class or package
      Returns:
      a Logger to be used for the class
    • getFormatter

      public static Formatter getFormatter()
      Returns the formatter.
      Returns:
      a Formatter object containing the specific format for the logging file