add _sum_residuals method and inertia_ attribute; change label dtype to be int