A joint learning framework for Gaussian processes regression and graph learning