Before recognition, the series undergoes preprocessing in the form of a Holt-Winters smoothing, and dividing each co- ordinate by a burst factor. Since the data are discrete, a formula for detecting strong oscillations on a graph, such as:
The time series is represented as a function of x (t), where t is the time of the coordinate, and in this case the index in the array, the time series is represented by the formula:
Neural network: a fully connected perceptron with three layers and architecture:
- x -> w1 -> relus -> w2 -> relu -> w3 -> softmax
- Input size: 100
- First hidden size: 55
- Seconds hidden size: 1024
- Output size: 2 (anomaly or not anomaly)
Loss function: cross entropy for softmax
Loss function optimization: stochastic gradient descent of Adam Network training: Method of back propagation error
make docker_build && make docker_up
-
Install: pip3 install numpy matplotlib
Server test.
RESPONSE:
{
"server": "Server start in 8080 port."
}
Get network weights, model load test.
RESPONSE:
{
'w1': {
'w1: [],
'b1: []
},
'w2': {
'w2: [],
'b2: []
},
'w3': {
'w3: [],
'b3: []
}
}
To analyze a segment or segments on the anomaly.
REQYEST BODY:
{
"series": [
{
"value": 1,
"timestamp": 1514238804
},
{
"value": 1,
"timestamp": 1514238804
}
]
}
RESPONSE:
{
"results": [
{
"anomaly": true,
"start": 1514238804,
"end": 1514238804
},
{
"anomaly": false,
"start": 1514238804,
"end": 1514238804
}
]
}