TrainedLearner.logID

TrainedLearner.logID = None

Identifier for this object within the log.

An identifier unique within the current logging session is generated when the logID attribute is first accessed. Each logID string begins with “TRAINEDLEARNER_” and is followed an integer value. The integer values start at 0 and increment by 1. Assuming logging is enabled, this occurs when the object is created. Searching for the logID text in the log will locate all logged usages of this object.

Examples

>>> train = nimble.data([[0, 0, 0], [0, 1, 1], [1, 0, 2]])
>>> tl = nimble.train('nimble.KNNClassifier', train, 2)
>>> tl.logID
'_TRAINEDLEARNER_0_'