This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# @Author: xuyannis | |
# @Date: 2017-02-25 12:35:15 | |
# @Last Modified by: xuyannis | |
# @Last Modified time: 2017-02-25 13:22:54 | |
import numpy as np | |
from numpy import linalg as la | |
import pandas as pd | |
def cosineSimilarity (vec1, vec2): |
OlderNewer