Trent commited on
Commit
58706b9
·
1 Parent(s): d43d175

Replace multicore TSNE

Browse files
Files changed (2) hide show
  1. backend/inference.py +1 -1
  2. requirements.txt +1 -2
backend/inference.py CHANGED
@@ -12,7 +12,7 @@ from typing import List, Union
12
  import torch
13
 
14
  from backend.utils import load_model, filter_questions, load_embeddings
15
- from MulticoreTSNE import MulticoreTSNE as TSNE
16
 
17
  def cos_sim(a, b):
18
  return jnp.matmul(a, jnp.transpose(b)) / (jnp.linalg.norm(a) * jnp.linalg.norm(b))
 
12
  import torch
13
 
14
  from backend.utils import load_model, filter_questions, load_embeddings
15
+ from sklearn.manifold import TSNE
16
 
17
  def cos_sim(a, b):
18
  return jnp.matmul(a, jnp.transpose(b)) / (jnp.linalg.norm(a) * jnp.linalg.norm(b))
requirements.txt CHANGED
@@ -5,6 +5,5 @@ jaxlib
5
  streamlit
6
  numpy
7
  torch
8
- cmake
9
- MulticoreTSNE
10
  plotly
 
5
  streamlit
6
  numpy
7
  torch
8
+ scikit-learn
 
9
  plotly