I cannot work out the benefits of a pipeline over a linear sequence of code instructions
I've looked at quite a number of how to 'create a pipeline' instructions, but I have yet to see an explanation of the benefits over what I am showing below.
To keep my example code agnostic I'll use simple pseudo-code.
So what I've been doing in order to, for example, train a model is...
Create functions/methods
function get_data(parm1, parm2...)
function prepare_data(...)
function train_model(...)
function test_model(...)
Run functions/methods - this is what I mean by 'linear sequence of code instructions' in the Title.
get_data(parm1, parm2...)
prepare_data(...)
train_model(...)
function test_model(...)
Topic pipelines machine-learning
Category Data Science