def tf_idf_dist(voc,v1,v2):
    
    v1 /= sum(v1)
    v2 /= sum(v2)
    
    return sqrt( sum( voc.idf*(v2-v1)**2 ) )
dataset/ETHPy150Open jesolem/PCV/PCV/imagesearch/imagesearch.py/tf_idf_dist/swapped operands of `-`