https://zhuanlan.zhihu.com/p/36789323 https://my.oschina.net/taogang/blog/1811573
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- create stream | |
CREATE STREAM network_traffic | |
( | |
`id` int, | |
`destination_port` int64, | |
`flow_duration` int64, | |
`total_fwd_packets` int64, | |
`total_backward_packets` int64, | |
`total_length_of_fwd_packets` int64, | |
`total_length_of_bwd_packets` int64, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container-fluid" id="main"> | |
<div class="row"> | |
<div class="col-6"> | |
<div id="dataView"></div> | |
</div> | |
</div> | |
<div class="row"> | |
<div id="modelView"></div> | |
</div> | |
<div class="row"> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tensorflow as tf | |
import numpy | |
# Parameters | |
learning_rate = 0.1 | |
training_epochs = 3000 | |
display_step = 50 | |
# Training Data, 3 points that form a triangel | |
train_X = numpy.asarray([3.0,6.0,9.0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<div class="row"> | |
<div class="col-sm-6"> | |
<div id="chart"></div> | |
</div> | |
<div class="col-sm-6"> | |
<div class="row"> | |
<button type="button" class="btn btn-xs" id="new_category_button">New Category Data</button> | |
<span id="category_info"></span> | |
<button type="button" class="btn btn-xs" id="classify_button">Predict</button> |
NewerOlder