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: 4d4df3d20b21ff21aa6480811cfe79b3ecd595b464c028d0e3a637c87d525bf6
4
- data.tar.gz: 1ced99b90def2545ba55eee4da8d0c163a336090e6434622d309d87c45d8f37e
3
+ metadata.gz: aa4457c9f58fde0edfa9fd8af0a4ac5ef23db54892f75a50a8f62ac1f8652631
4
+ data.tar.gz: a8f0afc4b58d067388f3c5986521609a5ede0816643f73235b8517265c6b72c7
5
5
  SHA512:
6
- metadata.gz: 3f09facf94faf3947891cfe650ecd9f01105238a054977c3e918c412422c95dc91b59c1a30376d31bb7cef3b6411003a611b223b1baba791cfe4135111bef88d
7
- data.tar.gz: a78433ea7f75d1280b3bae4e5cd264d4c5e2c62a1f5ad2d4ceb02f7c8670f4a1269485fe4754fad8c84fb4d100da327151bb4d1fd6993d7ee06a11555e28c921
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
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- hybridforest (0.11.0)
4
+ hybridforest (0.12.0)
5
5
  activesupport (~> 6.1)
6
6
  rake (~> 13.0)
7
7
  require_all
@@ -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, _, _ = HybridForest::Utils.train_test_bootstrap_split(instances)
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, _, _ = HybridForest::Utils.train_test_bootstrap_split(instances)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HybridForest
4
- VERSION = "0.12.0"
4
+ VERSION = "0.13.0"
5
5
  end
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.12.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-08 00:00:00.000000000 Z
11
+ date: 2022-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake