Module linfa::param_guard
source · Traits
A set of hyperparameters whose values have not been checked for validity. A reference to the
checked hyperparameters can only be obtained after checking has completed. If the
Transformer
, Fit
, or FitWith
traits have been implemented on the checked
hyperparameters, they will also be implemented on the unchecked hyperparameters with the
checking step done automatically.Implement this trait to opt into a blanket
Transformer
impl that wraps the output of the
unchecked transform
call in a Result
. If the unchecked transform
call returns a Result
,
the blanket impl will return double Result
s, so this trait should be avoided in that case.