I am a beginner in machine learning with R, and I am trying to do model stacking. My models however, correspond to a position in an enzyme and a [0-1] value from the model, which I have already pre-computed, and then I also have whether this position is pathogenic, benign or unknown. For example:
Position Model1 Model2 Status
1 0.9 0.93 Pathogenic
2 0.1 0.5 Benign
3 0.9 0.8 Unknown
etc
I would like to do model stacking in order to have a meta-model that would predict if an unknown position is benign or pathogenic. I am using the parsnip and the stacks package but I am not clear how to specify a pre-computed model such as mine. Any suggestions?