Tagmachine learning in horse racing