Spaces:
Running
Running
felipekitamura
commited on
Update app.py
Browse files
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='
|
78 |
print(reduced_data_pca.shape)
|
79 |
-
plot_reduced_data(reduced_data_pca, labels, '
|
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 = [
|