You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your excellent work. However, there are problems when I test with your code.
In line 6
from sklearn.manifold.t_sne import _joint_probabilities, _joint_probabilities_nn
Should it be from sklearn.manifold._t_sne ?
This was successfully imported after changing t_sne to _t_sne. However, the _joint_probabilities_nn reported only taking 3 positional arguments, but 4 were given. And After I fixed this, another error occurred...
Could you tell me how to solve this?
Thanks.
The text was updated successfully, but these errors were encountered:
amylmy
changed the title
Bugs of core\tsne_torch_loss.py
Bugs of core/tsne_torch_loss.py
Jun 9, 2022
In the tsne_torch_loss.py file, you can modify the code for the error section as follows:
# compute the joint probability distribution for the input spacerow_index= [iforiinrange(distances_nn.shape[0]) forjinrange(distances_nn.shape[1])]
col_index= [iforiinneighbors_nn.reshape(-1)]
distances_nn_=sp.csr_matrix((distances_nn.reshape(-1), (row_index, col_index)),
shape=(distances_nn.shape[0], distances_nn.shape[0]))
P=_joint_probabilities_nn(distances_nn_, perplexity, verbose)
To verify the correctness of this modification, you can run the test_tsne_torch_loss.py file located in the tests directory.
Thanks for your excellent work. However, there are problems when I test with your code.
In line 6
Should it be
from sklearn.manifold._t_sne
?This was successfully imported after changing
t_sne
to_t_sne
. However, the_joint_probabilities_nn
reported only taking 3 positional arguments, but 4 were given. And After I fixed this, another error occurred...Could you tell me how to solve this?
Thanks.
The text was updated successfully, but these errors were encountered: