Closed ablaom closed 2 years ago
The problem was that there was an assumption that the returned models from fit
subtype from DetectorModel
, which is unnecessary in retrospect and I changed it accordingly. I added tests for all features with MMI-based detectors to catch such problems in the future.
Problem is fixed with 0.2.6, but TagBot is currently failing due to some issue with mkdocs. I will retrigger tagging once https://github.com/mkdocs/mkdocs/issues/2799 is fixed.
Thanks for the rapid response @davnn. I can confirm that the issue is resolved at my end.
In our design interactions, I had the understanding that the wrappers
ProbabilisticDetector
andDeterministicDetector
that we developed could be used with any MLJUnsupervisedDetector
satisfying the API set out here. But I am struggling to do that in a particular case (one-class svm provided by LIBSVM.jl).Before presenting a MWE I wonder if I am missing something obvious. My model is a subtype of
MLJModelInterface.UnsupervisedDetector
and it has aMLJModelInterface.transform
method that returns raw scores, and the report has a fieldscores
for the the training scores. I thought this would be sufficient to wrap the model withProbabilisticDetector
. But when I try to fit the wrapped model, I'm running into "Failed to apply the operationaugmented_transform
to the machine Machine{OneClassSVM,…}" which suggests I need to implementaugmented_transform
(which we removed from MLJModelInterface)??Here's the full stack trace. Let me know if I need to post a MWE.