I want to implement machine learning on hardware platform s which can learning by itself Is there any way to by which machine learning on hardware works seamlessly?
Python supports wide range of platforms, including arm-based. 
You raspberry pi supports Linux distros, just install Python and go on.
How to embed machine learning python codes in hardware platform like raspberry pi?