via parameters passed while building pipeline here: https://github.com/minerva-ml/open-solution-mapping-challenge/blob/dev/src/pipelines.py#L304
I am certain, that we should choose only one of these two opportunities, because in that way it is dirty and error prone. I suggest to remove the first option, because train_mode is not part of data that we fit and transform, it is a parameter of a pipeline.
Now we pass an information about train mode in 2 ways: