Skip to content

Instantly share code, notes, and snippets.

@Mehdi-Amine
Last active April 26, 2020 13:48
Show Gist options
  • Save Mehdi-Amine/905c695c17af1c44752a305a99b5dfac to your computer and use it in GitHub Desktop.
Save Mehdi-Amine/905c695c17af1c44752a305a99b5dfac to your computer and use it in GitHub Desktop.
import plotly.graph_objects as go
# plotly.offline.init_notebook_mode() # Uncomment if working in a jupyter nb
fig = go.Figure(data=go.Scatter3d(
x = params[:, 0], y = params[:, 1], z = params[:, 2],
mode='lines',
line=dict(
color='green',
width=2
)
))
fig.update_layout(scene = dict(xaxis_title = 'Bias', yaxis_title = 'Weight 1', zaxis_title = 'Weight 2'))
fig.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment