midas-edge 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 591fe96dce393c91a49953aa80ed776b2d794528fb30123beee27acc91e91554
4
- data.tar.gz: f1105b066ad919ecc1fcf0ebebe88cfab174d31a8884ad6e6335260e476393a1
3
+ metadata.gz: 71b32a1851488ba989ccc792af8922d1148f0c0f4585574821ea1759c908ad41
4
+ data.tar.gz: a4b9105e96a3407708d8e64a31c33e93dbbb8c9127c1f99f802044cdd4aa6818
5
5
  SHA512:
6
- metadata.gz: ecf9b5807d75b4d158d7ec5519ec62b1bcf13cf1d735ce8d6b72e10085712766deda93ec11a54b1a5afae32d7deb8ce80758ca8d31ec70f96ac97b61f07c3054
7
- data.tar.gz: 972779bb0c42189302ad404d31452eff33b6f15b1fdfe51cabb4db2b3d00f5178475dd77a4fa3f9f06a4d2b30cb3c0c04cef36e66f4eb2d8a3ad264fed2009c8
6
+ metadata.gz: 28149251ec92a2b24e07c7745ad0b759c23ff4d957fa56298d6c6a92384f798e0651086a524b3b95e7911ed5500405929ef6627059429d41f3126381b73e479e
7
+ data.tar.gz: 2146d83339cd7c466d053f82f937a44ceb16d609d31034cd740b90425601ea12861e9bd1377a8696c5655af929a8dc1201fae6e79bed3addfd96125931e2f674
@@ -1,3 +1,7 @@
1
+ ## 0.2.3 (2020-11-17)
2
+
3
+ - Updated MIDAS to 1.1.2
4
+
1
5
  ## 0.2.2 (2020-09-23)
2
6
 
3
7
  - Updated MIDAS to 1.1.0
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
- [![Build Status](https://travis-ci.org/ankane/midas.svg?branch=master)](https://travis-ci.org/ankane/midas) [![Build status](https://ci.appveyor.com/api/projects/status/klmqg9pmd3ndo0j5/branch/master?svg=true)](https://ci.appveyor.com/project/ankane/midas/branch/master)
5
+ [![Build Status](https://travis-ci.org/ankane/midas.svg?branch=master)](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
@@ -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;
@@ -1,6 +1,6 @@
1
1
  require "mkmf-rice"
2
2
 
3
- $CXXFLAGS << " -std=c++17"
3
+ $CXXFLAGS << " -std=c++11"
4
4
 
5
5
  midas = File.expand_path("../../vendor/MIDAS/src", __dir__)
6
6
  $INCFLAGS << " -I#{midas}"
@@ -1,3 +1,3 @@
1
1
  module Midas
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
@@ -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
- inline void ConditionalMerge(const float* current, float* total, const float* score) const {
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
@@ -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
 
@@ -77,4 +76,4 @@ struct RelationalCore {
77
76
  });
78
77
  }
79
78
  };
80
- }
79
+ }
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.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-09-23 00:00:00.000000000 Z
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.2
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: []