simple regressor based on gradient based optimizer.