Algebraic shortcuts for leave-one-out cross-validation in supervised network inference. (16th October 2018)