# How Does Sci-Kit Learn Train Regression Neural Networks (MLPRegressor) So Fast?

Why does using the scikit-learn library's MLPRegressor result in such a boost in training time when compared to constructing the network from scratch? I tried both methods and I found that writing the code from scratch yielded an average training time of ~10 seconds while Sci-Kit Learn trained almost instantly?

• My suspicion would be that Scikit-Learn utilises a lot of numpy, which in turn utilises C (I could be wrong about that!) - a high-performant low-level language. Mar 14 '19 at 16:58
• If I was to code an ANN from scratch in C then do you think it would perform about the same as Scikit-learn (Not that I'll actually do that!) Mar 14 '19 at 17:27
• If you are intelligent enough and know how to optimize your code like hell, then Yes, Just check their Source code simple to see :) Mar 15 '19 at 4:46