hybridforest 0.12.0 → 0.13.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa4457c9f58fde0edfa9fd8af0a4ac5ef23db54892f75a50a8f62ac1f8652631
|
4
|
+
data.tar.gz: a8f0afc4b58d067388f3c5986521609a5ede0816643f73235b8517265c6b72c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9261b0cc8fa086e8b91f910f8b852f2369a1eac0e76ee4b01f1db3dddf9bb7f8f9947cbcaca2f81d6db6a9c734ed516a0848f29b7735661ea5be428b8e720392
|
7
|
+
data.tar.gz: 5d8a886b98ca5e735b4173fb51e114d313c28ef480bd8cae32cf339634e49384a44d4fdb53548afb82228bd368960ef002d55bbd1292dd8313706b2458bf543c
|
data/CHANGELOG.md
CHANGED
@@ -44,4 +44,8 @@
|
|
44
44
|
## [0.12.0] - 2022-01-08
|
45
45
|
|
46
46
|
- Allow Utils.random_sample to be passed a dataframe or a dataframe convertible object
|
47
|
-
- Allow Utils.random_sample's 'size' arg to equal the size of the initial dataframe if the strategy is sampling with replacement
|
47
|
+
- Allow Utils.random_sample's 'size' arg to equal the size of the initial dataframe if the strategy is sampling with replacement
|
48
|
+
|
49
|
+
## [0.13.0] - 2022-01-09
|
50
|
+
|
51
|
+
- Refactor forest growers
|
data/Gemfile.lock
CHANGED
@@ -8,7 +8,7 @@ module HybridForest
|
|
8
8
|
def grow_forest(instances, number_of_trees)
|
9
9
|
forest = []
|
10
10
|
number_of_trees.times do
|
11
|
-
sample
|
11
|
+
sample = HybridForest::Utils.random_sample(data: instances, size: instances.size)
|
12
12
|
forest << HybridForest::Trees::CARTTree.new.fit(sample)
|
13
13
|
end
|
14
14
|
forest
|
@@ -8,7 +8,7 @@ module HybridForest
|
|
8
8
|
def grow_forest(instances, number_of_trees)
|
9
9
|
forest = []
|
10
10
|
number_of_trees.times do
|
11
|
-
sample
|
11
|
+
sample = HybridForest::Utils.random_sample(data: instances, size: instances.size)
|
12
12
|
forest << HybridForest::Trees::ID3Tree.new.fit(sample)
|
13
13
|
end
|
14
14
|
forest
|
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.13.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: 2022-01-
|
11
|
+
date: 2022-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|