Skip to content

Instantly share code, notes, and snippets.

View ddrous's full-sized avatar
🎯
Focusing

R.D. NZOYEM ddrous

🎯
Focusing
View GitHub Profile
@ddrous
ddrous / CoraGraphVisualization.py
Last active June 28, 2022 11:54
7 Quick Steps to Visualise Your Graph for Machine Learning with Python's DGL, NetworkX, and PyVis
import dgl
import networkx as nx
from pyvis.network import Network
# Define number of nodes to show in visualization
nb_nodes_plot = 100
# Step 1. Load the cora dataset and slice it using DGL
dataset = dgl.data.CoraGraphDataset()
g_dgl = dataset[0].subgraph(list(range(nb_nodes_plot)))
@ddrous
ddrous / multipliers.py
Created November 14, 2023 21:40
Simple vs augmented method of multipliers
#%%
import jax
import jax.numpy as jnp
import numpy as np
jax.numpy.set_printoptions(precision=6)
# %% [markdown]