machine learning logic implemented in beaconFullLogic

Signed-off-by: Fons <lord.fontana@gmail.com>