Machine Learning Application

How machine learning can be used in software like NMap??