You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the method `fit` exists for struct `SvmParams<F, F>`, but its trait bounds were not satisfied
the following trait bounds were not satisfied:
`SvmValidParams<F, F>: linfa::prelude::Fit<_, _, _>`
which is required by `SvmParams<F, F>: linfa::prelude::Fit<_, _, _>`rustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic message [15]?15#file:///d%3A/muCapital/systems/src/arti_xg.rs)
hyperparams.rs(37, 1): doesn't satisfy `SvmValidParams<F, F>: linfa::prelude::Fit<_, _, _>`
hyperparams.rs(69, 1): doesn't satisfy `SvmParams<F, F>: linfa::prelude::Fit<_, _, _>`
How do I express the missing trait bounds or get this to work with numeric types?
EDIT: Example rewritten to minimal self contained sample
The text was updated successfully, but these errors were encountered:
This is a true fix as really it should call all the parameters (kernal,solver,platt) and check them - which need their own implementations of ParamGuard; but I'm not clever enough to do those.
I have a simple struct for setting some params and creating an SVR model
The above works fine but changing the type to F: Float like this
errors with
How do I express the missing trait bounds or get this to work with numeric types?
EDIT: Example rewritten to minimal self contained sample
The text was updated successfully, but these errors were encountered: