Open astamm opened 1 year ago
IIRC, scikit-learn policy says cls.threshold
has to be the value that was passed to the constructor, we are not allowed to modify it. The normal thing to do when threshold==-1
would be to compute the max in fit
and store that value under some other name. However, I notice that we do this computation inside transform
, that looks strange. @MathieuCarriere, do you agree that the computation of thres
should happen in fit
instead of transform
? (I can do it, I am just looking for confirmation) Or is it meant to do what it currently does?
@astamm: if I move the computation of thres
to fit
, I could document under what name it is available (maybe threshold_
). If it stays in transform
, we could clarify in the doc that a different value is used, not that threshold
is modified.
Btw, the same holds for the TopologicalVector
class.
The documentation says:
However, when running
we still get
-1
, while:which uses the default
threshold=10
, outputs:which shows that in the first case,
threshold
should have been updated automatically to2
.