outliertree 0.4.0 → 0.4.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 107a39daf1b8743880c65c0c9bd20f6b2430687a843aa3394e4f57ba38b58766
4
- data.tar.gz: 81e5e13612dd119624a6ec12652b048002c0c2103ee6389709682fb6bcb27e5e
3
+ metadata.gz: b2c75c112439d30795757595ab3d34de3fbe80049f1b03e7168f0d1eed405417
4
+ data.tar.gz: e08ddb70bdf7b1be287b2986fc9364aa554db465fc2ef11b193b8f2adbd7af19
5
5
  SHA512:
6
- metadata.gz: 2a8c6276389a465d548b7b06e7933e64094059960301b4393015bd906dd8deed361887876c152017bc2427fe54b81271e076de24f3e1df801f8f0c330a6c0f76
7
- data.tar.gz: 27b9eb4c42adc7abf6c905ec3c787f6947aae6475ecb37283c9b00e560ebb49a8a6bd7ebacfce2c636ba289f014b6dd87821d65311cd3a8640700a4dae44464d
6
+ metadata.gz: 8bf35fb1fad7023c10b5b7514281d6db9c57faacfa8fcbaaa5e39a2aefb43508f5ed1c9c4cac7dd7e96052fac5e0c6036de201223ec3df7241051426e67a349c
7
+ data.tar.gz: 36d0ffa632d62be0f2ebe73bb7cace6b4f31eddf6202f26afe8250f27a8bbf25606be9ca8e9b5c89a2596b3acdc0c7124cf039d7b5e9557902a08ae233416293
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.1 (2025-04-23)
2
+
3
+ - Updated OutlierTree to 1.10.0
4
+
1
5
  ## 0.4.0 (2024-06-11)
2
6
 
3
7
  - Updated OutlierTree to 1.9.0
@@ -80,7 +80,7 @@ module OutlierTree
80
80
  column: column,
81
81
  value: value,
82
82
  conditions: conditions,
83
- group_statistics: group_statistics,
83
+ group_statistics: group_statistics
84
84
  # leave out for simplicity
85
85
  # score: score,
86
86
  # tree_depth: model_outputs.outlier_depth_final[row],
@@ -128,7 +128,7 @@ module OutlierTree
128
128
  column: cond_col,
129
129
  comparison: colcond,
130
130
  to: condval,
131
- value: colval,
131
+ value: colval
132
132
  # leave out for simplicity
133
133
  # decimals: coldecim
134
134
  }
@@ -1,3 +1,3 @@
1
1
  module OutlierTree
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
@@ -173,8 +173,7 @@ bool define_numerical_cluster(double *restrict x, size_t *restrict ix_arr, size_
173
173
  if ((!isinf(left_tail) || !isinf(right_tail)) && !is_log_transf && !is_exp_transf) {
174
174
  sd *= 0.5;
175
175
  }
176
- while (std::numeric_limits<double>::epsilon() > sd*std::fmin(min_gap, z_norm))
177
- sd = std::nextafter(sd, std::numeric_limits<double>::infinity());
176
+ sd = std::fmax(sd, std::numeric_limits<double>::epsilon() / std::fmin(min_gap, z_norm));
178
177
  cluster.cluster_mean = mean;
179
178
  cluster.cluster_sd = sd;
180
179
  cnt = end - st + 1;
@@ -218,8 +217,8 @@ bool define_numerical_cluster(double *restrict x, size_t *restrict ix_arr, size_
218
217
  cluster.display_lim_low = orig_x[ix_arr[row + 1]];
219
218
  cluster.perc_above = (long double)(end - st_normals + 1) / (long double)(end - st + 1);
220
219
 
221
- while (cluster.display_lim_low <= cluster.lower_lim) {
222
- cluster.lower_lim = std::nextafter(cluster.lower_lim, -std::numeric_limits<double>::infinity());
220
+ if (cluster.display_lim_low <= cluster.lower_lim) {
221
+ cluster.lower_lim = std::nextafter(cluster.display_lim_low, -std::numeric_limits<double>::infinity());
223
222
  }
224
223
  break;
225
224
  }
@@ -292,8 +291,8 @@ bool define_numerical_cluster(double *restrict x, size_t *restrict ix_arr, size_
292
291
  }
293
292
 
294
293
  if (cluster.lower_lim > -HUGE_VAL) {
295
- while (cluster.lower_lim >= orig_x[ix_arr[st]]) {
296
- cluster.lower_lim = std::nextafter(cluster.lower_lim, -std::numeric_limits<double>::infinity());
294
+ if (cluster.lower_lim >= orig_x[ix_arr[st]]) {
295
+ cluster.lower_lim = std::nextafter(orig_x[ix_arr[st]], -std::numeric_limits<double>::infinity());
297
296
  }
298
297
  }
299
298
 
@@ -343,8 +342,8 @@ bool define_numerical_cluster(double *restrict x, size_t *restrict ix_arr, size_
343
342
  cluster.display_lim_high = orig_x[ix_arr[row - 1]];
344
343
  cluster.perc_below = (long double)(end_normals - st + 1) / (long double)(end - st + 1);
345
344
 
346
- while (cluster.display_lim_high >= cluster.upper_lim) {
347
- cluster.upper_lim = std::nextafter(cluster.upper_lim, std::numeric_limits<double>::infinity());
345
+ if (cluster.display_lim_high >= cluster.upper_lim) {
346
+ cluster.upper_lim = std::nextafter(cluster.display_lim_high, -std::numeric_limits<double>::infinity());
348
347
  }
349
348
  break;
350
349
  }
@@ -401,8 +400,8 @@ bool define_numerical_cluster(double *restrict x, size_t *restrict ix_arr, size_
401
400
  }
402
401
 
403
402
  if (cluster.upper_lim < HUGE_VAL) {
404
- while (cluster.upper_lim <= orig_x[ix_arr[end]]) {
405
- cluster.upper_lim = std::nextafter(cluster.upper_lim, std::numeric_limits<double>::infinity());
403
+ if (cluster.upper_lim <= orig_x[ix_arr[end]]) {
404
+ cluster.upper_lim = std::nextafter(orig_x[ix_arr[end]], std::numeric_limits<double>::infinity());
406
405
  }
407
406
  }
408
407
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: outliertree
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-06-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rice
@@ -16,15 +15,14 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '4.3'
18
+ version: 4.3.3
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
23
  - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '4.3'
27
- description:
25
+ version: 4.3.3
28
26
  email: andrew@ankane.org
29
27
  executables: []
30
28
  extensions:
@@ -60,7 +58,6 @@ homepage: https://github.com/ankane/outliertree-ruby
60
58
  licenses:
61
59
  - GPL-3.0-or-later
62
60
  metadata: {}
63
- post_install_message:
64
61
  rdoc_options: []
65
62
  require_paths:
66
63
  - lib
@@ -75,8 +72,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
72
  - !ruby/object:Gem::Version
76
73
  version: '0'
77
74
  requirements: []
78
- rubygems_version: 3.5.9
79
- signing_key:
75
+ rubygems_version: 3.6.7
80
76
  specification_version: 4
81
77
  summary: Explainable outlier/anomaly detection for Ruby
82
78
  test_files: []