Code that worked before now fails or prints FutureWarnings about learning_rate, init, or n_iter.
Why this happens
scikit-learn changed several TSNE parameters across versions. In version 1.2, the defaults changed to init="pca" and learning_rate="auto"; earlier versions warned about the upcoming change. In version 1.5, n_iter was renamed to max_iter, and the old name was later removed. The square_distances parameter was also removed. Tutorials written for older versions use the old names.
Answer 1: Rename n_iter to max_iter
# old
TSNE(n_iter=1000)
# new (scikit-learn >= 1.5)
TSNE(max_iter=1000)
