hybridforest 0.9.0 → 0.10.0
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 +5 -1
- data/lib/hybridforest/utilities/utils.rb +4 -4
- data/lib/hybridforest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd85ad9a8081b634556371599f61557c0490c0694bdc24f8aa8d866d44ba0843
|
4
|
+
data.tar.gz: f58382ac2737bce52c85cdf83e27f3099190a0f52be8c159780033194c183dd8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6678ba9cf3ccf15970801879a4d66f6ef98c8cf80353fc4ce2e9808f79063c447d19e96be374223403fedc093ac67cdd6599140df391ca68d05c708725ba4fc
|
7
|
+
data.tar.gz: 5c94ea5df0e6305719bf8ae9848a0a36d95d71fa51d7abe7bb09ed3f32720df98616bd3f2892e5c3467b647c9f6ebb7b89486e5cff771dde3141388d026fefe4
|
data/CHANGELOG.md
CHANGED
@@ -113,7 +113,7 @@ module HybridForest
|
|
113
113
|
#
|
114
114
|
def self.accuracy(predicted, actual)
|
115
115
|
accurate = predicted.zip(actual).count { |p, a| equal_labels?(p, a) }
|
116
|
-
accurate.to_f / predicted.count
|
116
|
+
accurate.to_f / predicted.count
|
117
117
|
end
|
118
118
|
|
119
119
|
# Extensions to simplify common dataframe operations.
|
@@ -146,11 +146,11 @@ module HybridForest
|
|
146
146
|
end
|
147
147
|
|
148
148
|
def feature_count(without_label: true)
|
149
|
-
without_label ?
|
149
|
+
without_label ? features.count : names.count
|
150
150
|
end
|
151
151
|
|
152
152
|
def pure?
|
153
|
-
|
153
|
+
self[label].uniq.size == 1
|
154
154
|
end
|
155
155
|
|
156
156
|
def features
|
@@ -158,7 +158,7 @@ module HybridForest
|
|
158
158
|
end
|
159
159
|
|
160
160
|
def count_labels
|
161
|
-
|
161
|
+
self[label].tally
|
162
162
|
end
|
163
163
|
|
164
164
|
def label
|
data/lib/hybridforest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hybridforest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hi-tech-jazz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-12-
|
11
|
+
date: 2021-12-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|