Custom-Tailored Neural Networks