I want to use PCA and t-SNE to achieve the desired result!

Asked 2 years ago, Updated 2 years ago, 41 views

Current situation: I typed the PCA script into paiza(beta), but the following error occurred and I couldn't run it.

File "Main.py", line 6
d_pca<-prcomp(coil20[,-ncol(coil20)], scale=TRUE)
^
SyntaxError: invalid syntax

Final Objective: We would like to get results as shown in the link below.*The desired image is also included in this question.
https://blog.albert2005.co.jp/2015/12/02/tsne/

I will write down the current state in an image so that it is easy to understand.
Enter a description of the image here

The final image is as follows.
Enter a description of the image here

environment:OS windows 10
   python 3.8

python python3

2022-09-30 19:21

1 Answers

After changing the language settings, I was able to execute it. It seems that the problem was that Python code was written on the basis of R language


2022-09-30 19:21

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.