felipekitamura commited on
Commit
524d13b
·
verified ·
1 Parent(s): 9f8fcc2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -74,9 +74,9 @@ def inference(word1, word2, word3):
74
  data = np.concatenate([x[np.newaxis, :] for x in words.values()], axis=0)
75
  print(data.shape)
76
  labels = words.keys()
77
- reduced_data_pca = reduce_dimensions(data, method='TSNE')
78
  print(reduced_data_pca.shape)
79
- plot_reduced_data(reduced_data_pca, labels, 'TSNE Results')
80
  return cache
81
 
82
  examples = [
 
74
  data = np.concatenate([x[np.newaxis, :] for x in words.values()], axis=0)
75
  print(data.shape)
76
  labels = words.keys()
77
+ reduced_data_pca = reduce_dimensions(data, method='PCA')
78
  print(reduced_data_pca.shape)
79
+ plot_reduced_data(reduced_data_pca, labels, 'PCA Results')
80
  return cache
81
 
82
  examples = [