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
julia> d = (; a=rand(10), b=rand(10));
julia> f =@formula(0~protect(unprotect(a + b +protect(a * b))))
FormulaTerm
Response:0
Predictors:
(a,b)->protect(unprotect(a + b +protect(a * b)))
julia>apply_schema(f, schema(f, d))
FormulaTerm
Response:0
Predictors:a(continuous)
b(continuous)
a(continuous) &b(continuous)
vs.
julia> f =@formula(0~ a + b +protect(a * b))
FormulaTerm
Response:0
Predictors:a(unknown)
b(unknown)
(a,b)->protect(a * b)
julia>apply_schema(f, schema(f, d))
FormulaTerm
Response:0
Predictors:a(continuous)
b(continuous)
(a,b)->a * b
The real place this comes up in practice is when trying to add special syntax like in kleinschmidt/RegressionFormulae.jl#13 that correctly respects protect inside it. The protect(unprotect(... dance is mimicking how apply_schema gets triggered.
The text was updated successfully, but these errors were encountered:
vs.
The real place this comes up in practice is when trying to add special syntax like in kleinschmidt/RegressionFormulae.jl#13 that correctly respects
protect
inside it. Theprotect(unprotect(...
dance is mimicking howapply_schema
gets triggered.The text was updated successfully, but these errors were encountered: