Optimal rates for regularized least­ squares algorithm