CMS Lab

Ulsan National Institute of Science and Technology

Mathematics are well and good
but nature keeps dragging us around by the nose.
~Albert Einstein

 
작성일 : 15-08-20 09:01
2015 CMA Summer Workshop : Mathematical Bigdata Analysis
 글쓴이 : 관리자 (10.♡.22.225)
조회 : 1,635  
   Sentiment Classification using Naive Bayes.zip (3.9M) [42] DATE : 2015-08-24 21:16:16
   부산bc.kmz (570.1K) [42] DATE : 2015-08-24 21:16:16

Welcome to CMA Workshop.



오른쪽 마우스 클릭해서 다른이름으로 저장 하세요.

관리자 15-08-21 13:19
 10.♡.23.191  
관리자 15-08-21 13:53
 10.♡.23.191  
관리자 15-08-21 13:54
 10.♡.23.191  
def nextstep(selectednode):
    nextnodes = G.edges(selectednode)
    randomvector = np.random.rand(len(nextnodes))
    selectedpos = np.where(randomvector == max(randomvector))[0][0] selectednode = nextnodes[selectedpos][1]
    print "choices", nextnodes
    print selectednode
    addvalue(values, selectednode)
    return selectednode
관리자 15-08-21 13:54
 10.♡.23.191  
for i in range(5):
    selectednode = nextstep(selectednode)
관리자 15-08-21 13:54
 10.♡.23.191  
for i in range(20000):
    selectednode = nextstep(selectednode)
관리자 15-08-21 13:54
 10.♡.23.191  
nx.draw_networkx_nodes(G, pos, node_size=values)
nx.draw_networkx_edges(G, pos)
nx.draw_networkx_labels(G, pos)
관리자 15-08-21 14:01
 10.♡.23.191  
import networkx as nx
from matplotlib import pyplot as plt
G = nx.DiGraph()
G.add_edges_from([(1,2),(2,3),(2,12),(3,4),(3,8),(3,12),(4,8),(5,1),
(6,1),(6,2),(7,2),(7,12),(8,12),(8,13),(8,14),(8,15),(8,9),(9,16), (10,5),(10,6),(10,7),(11,10),(12,16),(13,16),(14,16),(15,16), (16,11)])
nx.draw_spring(G)