Change LinearCost to SquaredError