Composite Optimization Algorithms for Sigmoid Networks