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
Otherwise expressions like models(matching(X, y)) do m m.prediction_type == :deterministic end error because unsupervised models do not have prediction_type as a trait (despite the fact that matching(X, y) rules out unsupervised models).
The text was updated successfully, but these errors were encountered:
Okay, the use of all already makes this short-circuiting. I was forgetting that models(c1) do m c2(m) end is equivalent to models(c2, c1) and not models(c1, c2). So instead of trying to be clever (and failing) I should have simply performed
models() do m
matching(m, X, y) &&
m.prediction_type ==:deterministicend
which works.
However, my entries in the manual and cheatsheet are flawed and need to be corrected
ablaom
changed the title
Make evaluation of conditions in models(conditions...) and `measures(conditions...) short-circuit conjunctions
Correct manual entries regarding use of models with compound conditions.
Nov 19, 2019
Otherwise expressions like
models(matching(X, y)) do m m.prediction_type == :deterministic end
error because unsupervised models do not haveprediction_type
as a trait (despite the fact thatmatching(X, y)
rules out unsupervised models).The text was updated successfully, but these errors were encountered: