Created
August 14, 2020 10:49
-
-
Save UrusuLambda/46932c2eebe6272825882942a448536b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
import plotly.express as px | |
#x_test.shape : (1000, 3) | |
df=pd.DataFrame(x_test,columns=list("XYZ")) | |
#y_test.shape : (1000,) | |
df["label"]=np.array(y_test) | |
#plot here | |
fig = px.scatter_3d(df, x='X', y='Y', z='Z', color='label', size_max=4, opacity=0.7) | |
fig.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment