Destructuring

Robert Myles McDonnell

3 minute read

I really don’t like splitting data into ‘train’ and ‘test’. I don’t mean that I’m against the idea of it, though you could say it’s a waste of data that could be used to better your model, but I mean that actual assignment in R of ‘train’ and ‘test’. I always liked destructuring in Python, and I like it a lot in 2018 JavaScript, so when I remembered that the zeallot package has it, I thought it would be a good opportunity to see how that could fit in a tidy modelling pipeline.