This is a Python implementation of
https://github.com/pchausse/malp/blob/main/R/malp.R
I have simplified this quite a bit and a few bits are missing.
model = malp('y ~ x', data)
will estimate the model, you can then make predictions
predict(model)
or use summary(), or plot()
It only allows one independent variable and the SE is calculated via bootstrap.
The unit tests compare against R output.
Taeho Kim, Pierre Chaussé, Matteo Bottai, Gheorghe Doros, Mihai Giurcanu, George Luta, Edsel A. Peña, 2025. “Maximum Agreement Linear Prediction.” https://arxiv.org/abs/2304.04221.