midas-edge 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -2
- data/ext/midas/ext.cpp +4 -2
- data/ext/midas/extconf.rb +1 -1
- data/lib/midas/version.rb +1 -1
- data/vendor/MIDAS/README.md +20 -0
- data/vendor/MIDAS/src/FilteringCore.hpp +1 -2
- data/vendor/MIDAS/src/RelationalCore.hpp +1 -2
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71b32a1851488ba989ccc792af8922d1148f0c0f4585574821ea1759c908ad41
|
4
|
+
data.tar.gz: a4b9105e96a3407708d8e64a31c33e93dbbb8c9127c1f99f802044cdd4aa6818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28149251ec92a2b24e07c7745ad0b759c23ff4d957fa56298d6c6a92384f798e0651086a524b3b95e7911ed5500405929ef6627059429d41f3126381b73e479e
|
7
|
+
data.tar.gz: 2146d83339cd7c466d053f82f937a44ceb16d609d31034cd740b90425601ea12861e9bd1377a8696c5655af929a8dc1201fae6e79bed3addfd96125931e2f674
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[MIDAS](https://github.com/bhatiasiddharth/MIDAS) - edge stream anomaly detection - for Ruby
|
4
4
|
|
5
|
-
[](https://travis-ci.org/ankane/midas)
|
5
|
+
[](https://travis-ci.org/ankane/midas)
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
@@ -10,7 +10,6 @@ Add these lines to your application’s Gemfile:
|
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
gem 'midas-edge'
|
13
|
-
gem 'rice', github: 'jasonroelofs/rice' # for now for c++17
|
14
13
|
```
|
15
14
|
|
16
15
|
## Getting Started
|
data/ext/midas/ext.cpp
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
// stdlib
|
2
|
+
#include <iostream>
|
3
|
+
#include <vector>
|
4
|
+
|
1
5
|
// midas
|
2
6
|
#include <FilteringCore.hpp>
|
3
7
|
#include <NormalCore.hpp>
|
@@ -7,8 +11,6 @@
|
|
7
11
|
#include <rice/Module.hpp>
|
8
12
|
#include <rice/String.hpp>
|
9
13
|
|
10
|
-
using std::vector;
|
11
|
-
|
12
14
|
using Rice::Module;
|
13
15
|
using Rice::String;
|
14
16
|
using Rice::define_module;
|
data/ext/midas/extconf.rb
CHANGED
data/lib/midas/version.rb
CHANGED
data/vendor/MIDAS/README.md
CHANGED
@@ -83,6 +83,26 @@ The scores will be exported to `MIDAS/temp/Score.txt`, higher means more anomalo
|
|
83
83
|
|
84
84
|
All file paths are absolute and "hardcoded" by CMake, but it's suggested NOT to run by double clicking on the executable file.
|
85
85
|
|
86
|
+
### Requirements
|
87
|
+
|
88
|
+
Core
|
89
|
+
- C++11
|
90
|
+
- C++ standard libraries
|
91
|
+
|
92
|
+
Demo
|
93
|
+
- Python 3 (`MIDAS/util/EvaluateScore.py`)
|
94
|
+
- `pandas`: I/O
|
95
|
+
- `scikit-learn`: Compute ROC-AUC
|
96
|
+
|
97
|
+
Experiment
|
98
|
+
- (Optional) Intel TBB: Parallelization
|
99
|
+
- (Optional) OpenMP: Parallelization
|
100
|
+
|
101
|
+
Other python utility scripts
|
102
|
+
- Python 3
|
103
|
+
- `pandas`
|
104
|
+
- `scikit-learn`
|
105
|
+
|
86
106
|
## Customization
|
87
107
|
|
88
108
|
### Switch Cores
|
@@ -17,7 +17,6 @@
|
|
17
17
|
#pragma once
|
18
18
|
|
19
19
|
#include <cmath>
|
20
|
-
#include <algorithm>
|
21
20
|
|
22
21
|
#include "CountMinSketch.hpp"
|
23
22
|
|
@@ -65,7 +64,7 @@ struct FilteringCore {
|
|
65
64
|
return s == 0 ? 0 : pow(a + s - a * t, 2) / (s * (t - 1)); // If t == 1, then s == 0, so no need to check twice
|
66
65
|
}
|
67
66
|
|
68
|
-
|
67
|
+
void ConditionalMerge(const float* current, float* total, const float* score) const {
|
69
68
|
for (int i = 0; i < lenData; i++)
|
70
69
|
shouldMerge[i] = score[i] < threshold;
|
71
70
|
for (int i = 0, I = lenData; i < I; i++) // Vectorization
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: midas-edge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rice
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '5'
|
97
|
-
description:
|
97
|
+
description:
|
98
98
|
email: andrew@chartkick.com
|
99
99
|
executables: []
|
100
100
|
extensions:
|
@@ -120,7 +120,7 @@ homepage: https://github.com/ankane/midas
|
|
120
120
|
licenses:
|
121
121
|
- MIT
|
122
122
|
metadata: {}
|
123
|
-
post_install_message:
|
123
|
+
post_install_message:
|
124
124
|
rdoc_options: []
|
125
125
|
require_paths:
|
126
126
|
- lib
|
@@ -135,8 +135,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
135
135
|
- !ruby/object:Gem::Version
|
136
136
|
version: '0'
|
137
137
|
requirements: []
|
138
|
-
rubygems_version: 3.1.
|
139
|
-
signing_key:
|
138
|
+
rubygems_version: 3.1.4
|
139
|
+
signing_key:
|
140
140
|
specification_version: 4
|
141
141
|
summary: Edge stream anomaly detection for Ruby
|
142
142
|
test_files: []
|