Risk classification with a blockwise kernel machine model