Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
model.fit(g, tp)
model.get_embedding()
#---------------
# BANE example
#---------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
x = np.random.uniform(0,1,(100,2000))
p = nx.newman_watts_strogatz_graph(100, 20, 0.05)
x = nx.adjacency_matrix(p)
model = BANE()
model.fit(g, x)
#-----------------
# BigClam example
#-----------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model = BigClam()
model.fit(g)
membership = model.get_memberships()
#-------------------
model.fit(g, tp)
model.get_embedding()
#-----------------------------------
# BANE example
#-----------------------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
x = np.random.uniform(0,1,(100,2000))
p = nx.newman_watts_strogatz_graph(100, 20, 0.05)
x = nx.adjacency_matrix(p)
model = BANE()
model.fit(g, x)
#------------------------------------
# BigClam example
#------------------------------------
g = nx.newman_watts_strogatz_graph(100, 20, 0.05)
model = BigClam()
model.fit(g)
membership = model.get_memberships()
#------------------------------------