24 Feb
2020
24 Feb
'20
10:41 a.m.
On 24.02.20 13:24, Rhodri James wrote:
This seems a lot like trying to shoehorn something in so one can write idiomatic R in Python. That on the whole sounds like a bad idea; a friend of mine use to say he could write FORTRAN in any language but no one else could read it. Wouldn't it be more pythonic (or more accurately anything-other-than-R-ic) to use an interface that was more like
model = model_fn(prediction, seq_of_predictors, data_table)
The problem here is that the `seq_of_predictors` doesn't include a way for specifying their relationship with `prediction`, i.e. one cannot (easily) distinguish P ~ X + Y + Z versus P ~ X * Y + Z