Closed ghost closed 4 years ago
Great spot! This is a bug.
Correction. Strictly speaking, not a bug. The correct call is
KnnPipe = @pipeline(Standardizer(), KNNClassifier(), prediction_type=:probabilistic, operation=predict_mode)
(no colon before predict_mode
)
But we should improve the error message.
By the way, the prediction_type=:probablistic
is now redundant as this is automatically inferred. If the macro cannot safely infer this, it will let you know.
Closing in favour of https://github.com/alan-turing-institute/MLJBase.jl/issues/367
Describe the bug
Some keyword arguments raise an error when included in pipeline. In the below example, this is the case for
operation=:predict_mode
but not forprediction_type=:probabilistic
.To Reproduce
Expected behavior Expected to be able to use
operation
as a kwarg based on latest doc: https://alan-turing-institute.github.io/MLJ.jl/stable/composing_models/Additional context
Versions