MODULE
IVORY.CALLBACKS.RESULTS
A container to store training, validation and test results.
Classes
Results
— Results callback stores training, validation and test results.</>BatchResults
— Results callback stores training, validation and test results.</>
Functions
concatenate
(
iterable
,callback
,modes
,reduction
)
(Results) — Returns a concatenated Results.</>
class
ivory.callbacks.results.
Results
(
)
Results callback stores training, validation and test results.
Each result is ivory.core.collections.Dict
type that has index
,
output
, and target
array.
To get target
array of validation, use
target = results.val.target
Attributes
index
—output
—target
—test
(Dict) — Test results.train
(Dict) — Train results.val
(Dict) — Validation results.
class
ivory.callbacks.results.
BatchResults
(
)
Results callback stores training, validation and test results.
Each result is ivory.core.collections.Dict
type that has index
,
output
, and target
array.
To get target
array of validation, use
target = results.val.target
Attributes
index
—indexes
—output
—outputs
—target
—targets
—test
(Dict) — Test results.train
(Dict) — Train results.val
(Dict) — Validation results.
function
ivory.callbacks.results.
concatenate
(
iterable
, callback=None
, modes=('val', 'test')
, reduction='none'
)
→ Results
Returns a concatenated Results.
Parameters
iterable
(iterable of Results) — Iterable ofResults
instance.callback
(callable, optional) — Called for eachResults
. Must take (mode
,index
,output
,target
) arguments and return a tuple of ('index',output
,target
).modes
(iterable of str) — Specify modes to concatenate.reduction
(str, optional) — Reduction.none
ormean
.