I specifically want to direct this questions to the capable thinkers.
Is there any way to contain the AI, so it doesn't get our of control of itself.
Of course, Robots with AI tech is very much controllable in any given circumstances. Safety measures can be put in place like putting a kill switch. The robots you see going wild and killing people are just for movies. Something like doesn't really happen in reality.

That's is true and it's a valid point,but I am focusing on the part of machine learning,what if the AI gets so advanced that it can tell that it can think itself.