Distributed and error resilient convex optimization formulations in machine learning