Learning Robot Operators From Examples