text_plain_output_1.png
from sklearn.metrics import jaccard_score

from tqdm import tqdm

import numpy as np

import pandas as pd

import pandas as pd
data = pd.read_csv('/kaggle/input/docs-for-lsh/docs_for_lsh.csv')

import numpy as np
data = data.values[:, 1:]
np.random.seed(0)
n = 30
m = data.shape[0]
length = data.shape[1]
signMatrix = np.zeros((n, m))

from sklearn.metrics import jaccard_score
jaccardDict = {}
for i in tqdm(range(1, m)):
    jaccardDict[i] = jaccard_score(data[0, :], data[i, :])
sorted(jaccardDict.items(), key=lambda x: x[1], reverse=True)[:30]