working learning iterations... todo: setting learned metric