Algorithms and architectures for machine learning based on regularized neural netwoks and support vector approaches