added ridge for comparison with sgd