-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdemos.html
218 lines (178 loc) · 10.7 KB
/
demos.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="SJTU-Spark | Less is More">
<meta name="author" content="SJTU">
<title>SJTU-Spark Open Platform</title>
<!-- Bootstrap Core CSS - Uses Bootswatch Flatly Theme: http://bootswatch.com/flatly/ -->
<link href="static/css/bootstrap.min.css" rel="stylesheet">
<link href="static/css/offcanvas.css" rel="stylesheet">
<link href="static/css/pagerank.css" rel="stylesheet">
<!-- Custom Fonts -->
<!-- <link href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" rel="stylesheet" type="text/css">-->
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body style="padding-top: 70px;overflow-x: hidden;">
<nav class="navbar navbar-fixed-top navbar-default" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">SJTU-SPARK</a>
</div>
</div><!-- /.container -->
</nav><!-- /.navbar -->
<div class="container">
<div class="row">
<p></p>
</div>
<div class="row row-offcanvas row-offcanvas-left">
<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar" role="navigation" data-tabs="tabs">
<div class="list-group nav nav-tabs" id="projectTabs">
<a href="#apriori" class="list-group-item active" data-toggle="tab">A-priori</a>
<a href="#em" class="list-group-item" data-toggle="tab">Expectation Maximization</a>
<a href="#pagerank" class="list-group-item" data-toggle="tab">PageRank</a>
<a href="#kmeans" class="list-group-item" data-toggle="tab">K-means</a>
<a href="#recommend" class="list-group-item" data-toggle="tab">Recommend</a>
</div>
<div>
<p>© SJTU-SPARK 2014</p>
</div>
</div><!--/.sidebar-offcanvas-->
<div id="my-tab-content" class="tab-content">
<div class="tab-pane fade in active" id="apriori">
<div class="col-xs-12 col-sm-9">
<p class="pull-right visible-xs">
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
</p>
<div class="jumbotron">
<h1>A-priori!</h1>
<p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
</div><!-- jumbotron -->
</div><!--/.col-xs-12.col-sm-9-->
</div>
<div class="tab-pane fade" id="em">
<div class="col-xs-12 col-sm-9">
<p class="pull-right visible-xs">
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
</p>
<div class="jumbotron">
<h1>Expectation, Maximization!</h1>
<p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
</div><!-- jumbotron -->
</div><!--/.col-xs-12.col-sm-9-->
</div>
<div class="tab-pane fade" id="pagerank">
<div class="col-xs-12 col-sm-9">
<p class="pull-right visible-xs">
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
</p>
<div class="jumbotron">
<h1>Page, Rank!</h1>
<p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
</div><!-- jumbotron -->
<div id="content">
<img id="page_img" src="img/pagerank/1.jpg">
<div id="page">
<h3>Using PageRank to find hot User based on re-post information</h3>
<p>The core source code of PageRank:<br>
var PR = Array.fill(n)( 1.0 ) <br>
val oldPR = Array.fill(n)( 1.0 ) <br>
for( iter <- 0 until numIter ) { swap(oldPR, PR) for( i <- 0 until n ) <br>
{ PR[i] = alpha + (1 - alpha) * inNbrs[i].map(j => oldPR[j] / outDeg[j]).sum } }<br>
</p>
<img id="image" src="img/pagerank/2.png">
<p id="bp">1. The second parameter of “PageRank()” can control accuracy and running time.<br>
2. The default of resetProb is 0.15.
</p>
</div>
<div id="page">
<div id="bp">
<p>Data amount:1030000<br>
Verticals.15000000 Edges.
</p>
<img id="image" src="img/pagerank/3.png">
</div>
<h5>The second parameter of PageRank() set:0.0001<br>
Running time:3 minutes
</h5>
<h4 id="bp">Using GraphLoader to load the graph.</h4>
<img id="image" src="img/pagerank/4.png">
</div>
<img id="page_img" src="img/pagerank/5.jpg">
<div id="page">
<h4>Simple version of code:</h4>
<img id="image" src="img/pagerank/6.png">
<h4>Verticals contain information like name and tags:</h4>
<img id="image" src="img/pagerank/7.png">
</div>
<div id="page">
<p>It is just a simple use of PageRank. We can get more accuracy result by throwing away zombie users. To find zombie users, we can use PageRank in a different way, because they follow a lot of people but none followers.<br>
Or we can using tag to find famous people by calculating PR among people whose tag includes “SPARK”.<br>
<br>
Unlike website, Weibo is interesting because in website, high PR like google has many connection with other websites, but famous people in Weibo only follow several people.
</p>
</div>
</div>
<p></p>
</div><!--/.col-xs-12.col-sm-9-->
</div>
<div class="tab-pane fade" id="kmeans">
<div class="col-xs-12 col-sm-9">
<p class="pull-right visible-xs">
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
</p>
<div class="jumbotron">
<h1>K, Means!</h1>
<p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
</div><!-- jumbotron -->
</div><!--/.col-xs-12.col-sm-9-->
</div>
<div class="tab-pane fade" id="recommend">
<div class="col-xs-12 col-sm-9">
<p class="pull-right visible-xs">
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
</p>
<div class="jumbotron">
<h1>recommend, system!</h1>
<p>This is an example to show the potential of an offcanvas layout pattern in Bootstrap. Try some responsive-range viewport sizes to see it in action.</p>
</div><!-- jumbotron -->
</div><!--/.col-xs-12.col-sm-9-->
</div>
</div><!-- tab-content -->
</div>
<footer style="padding: 50px 0;">
</footer>
</div>
<!-- jQuery Version 1.11.0 -->
<script src="static/js/jquery-1.11.0.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="static/js/bootstrap.min.js"></script>
<!-- Offcanvas JavaScript -->
<script src="static/js/offcanvas.js"></script>
<script type="text/javascript">
$(document).ready(function (){
$('a[data-toggle="tab"]').on('show.bs.tab', function (e) {
// add active class where nav entry is active
$('.nav a[data-toggle="tab"][href="'+$(e.target).attr("href")+'"]')
.addClass('active');
// remove active class where nav entry is no longer active
$('.nav a[data-toggle="tab"][href!="'+$(e.target).attr("href")+'"]')
.removeClass('active');
});
});
</script>
</body>
</html>