Skip to content

Instantly share code, notes, and snippets.

@UrusuLambda
Created August 14, 2020 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save UrusuLambda/46932c2eebe6272825882942a448536b to your computer and use it in GitHub Desktop.
Save UrusuLambda/46932c2eebe6272825882942a448536b to your computer and use it in GitHub Desktop.
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