Controlling a prosthetic limb by interpreting arbitrary signals through machine learning