ExamplesΒΆ Example 1:Hinge and Square Loss Example 2:SVM Example 3:Ridge Regression Example 4:Portfolio Optimization