red-optuna 1.0.0 → 1.0.1

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: 5a84b67ae1cb553ca5e99114729b3ba6128a467ead4e1dbc3a23305647eb8c50
4
- data.tar.gz: ae4ed367ce6762ed6b59000f9b6b3b9f475583cbd956ee0af5bc237ff9af77bd
3
+ metadata.gz: f437c64f0496197b4baefea7be153184fd12e7a480c474616be0c7e270de809c
4
+ data.tar.gz: bb0b2a5334c8769da1cda42e1bd0b686d7531a2d952085ba411d5bf827bed44f
5
5
  SHA512:
6
- metadata.gz: 19d5ddba5c778708215e7a905f86c50e4c3fbee3c1c5518c1352a7471c50655398554ea0e6b0faadf2b7fe998cfe3835d176ce43b078bb6adbb3d29d70c3d097
7
- data.tar.gz: 8ca53b6f37b3f7aeaa081b1306da55e0c10fe8dbf0d3f17d030c9dce0834c41f89afc4bc02f0b4f31910757333d6f17d78df257dfc9fee0b9d64efbedf78d911
6
+ metadata.gz: f9845de4dc00a4d32e1c457c2f8e58cf85807591f8260ea54b45d78bbe408d34e17d3e8867c79a7465e509927ef01492107124452ff756022e1d2dec440f9788
7
+ data.tar.gz: 931d788fb97d38859791bf559f1c73fb8d19e3dccb5ec0b48ef357ffc832a2ce2ba2829364b069fa2c42a59749987717533b7a4c90782e900d296dbc1333f14d
@@ -0,0 +1,11 @@
1
+ # News
2
+
3
+ ## 1.0.1 - 2019-04-25
4
+
5
+ ### Improvements
6
+
7
+ * Use numpy gem to convert float value.
8
+
9
+ ## 1.0.0 - 2019-04-24
10
+
11
+ The initial release!!!
@@ -17,7 +17,7 @@ study.optimize(n_trials: 100) do |trial|
17
17
  ["SVC", "RandomForest"])
18
18
  if classifier_name == "SVC"
19
19
  svc_regulation = trial.suggest_uniform("svc_regulation", 0.0, 1.0)
20
- classifier = Rumale::LinearModel::SVC.new(reg_param: svc_regulation.to_f)
20
+ classifier = Rumale::LinearModel::SVC.new(reg_param: svc_regulation)
21
21
  else
22
22
  rf_max_depth = trial.suggest_loguniform("rf_max_depth", 2, 32).to_i
23
23
  classifier = Rumale::Ensemble::RandomForestClassifier.new(max_depth: rf_max_depth)
@@ -1,4 +1,4 @@
1
- require "pycall"
1
+ require "numpy"
2
2
 
3
3
  module Optuna
4
4
  class << self
@@ -1,3 +1,3 @@
1
1
  module Optuna
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -29,9 +29,10 @@ Gem::Specification.new do |spec|
29
29
  "#{spec.name}.gemspec",
30
30
  ]
31
31
  spec.files += Dir.glob("lib/**/*.rb")
32
+ spec.files += Dir.glob("doc/text/*")
32
33
  spec.files += Dir.glob("example/**/*.rb")
33
34
 
34
- spec.add_runtime_dependency("pycall")
35
+ spec.add_runtime_dependency("numpy", ">= 0.2.0")
35
36
 
36
37
  spec.add_development_dependency("bundler")
37
38
  spec.add_development_dependency("rake")
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: red-optuna
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: pycall
14
+ name: numpy
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.2.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.2.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -93,6 +93,7 @@ files:
93
93
  - LICENSE.txt
94
94
  - README.md
95
95
  - Rakefile
96
+ - doc/text/news.md
96
97
  - example/rumale-simple.rb
97
98
  - lib/optuna.rb
98
99
  - lib/optuna/version.rb