ValueError: The parameter init="pca" cannot be used with metric="precomputed".
This error arises due to a change in scikit-learn version 1.2, where the default value for the init parameter in TSNE was updated from "random" to "pca". Explicitly setting the init parameter to "random" should fix this.
When attempting to perform a projection using TSNE with the following code, a ValueError is encountered:
ValueError: The parameter init="pca" cannot be used with metric="precomputed".
This error arises due to a change in scikit-learn version 1.2, where the default value for the init parameter in TSNE was updated from "random" to "pca". Explicitly setting the init parameter to "random" should fix this.