Observation-based learning for brain–machine interfaces