Best practice on Machine Learning by AS3 language.