rumale-svm 0.5.0 → 0.5.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: 847cb0e3e45d78a4f5d817c645bfc9517dc50e51a06bd934740d6a4bfe73fa7b
4
- data.tar.gz: fc46b42b3ba883ad3760579333e52b7ada898d951aaebcc8c107cdbb18f7d7a3
3
+ metadata.gz: f0000e7a25f4aaf36f645a7860d13bed3ca06ea7d99bc15469cd7c9ea0a57288
4
+ data.tar.gz: 0db6f53cabe1a84493d20bf9e0822057dca4ec92042bdefb6fda15f794aba9aa
5
5
  SHA512:
6
- metadata.gz: 342eff3e5ccb2108f3fb1d0e3625e119b2a88a91682eb01632ebd1b1c0cdc892e6454fad1e9a261bb4353a4ad36177be907b54dfabcccaa99d160eb3923a5b70
7
- data.tar.gz: 70c2953a3617a07b988e86f2f111241cab30d3e930699d9d8faf7fd5721ed40f9f418848f2dbd37c511dc732e4651fe05067970c0e4d48747bca8e5689bb98ad
6
+ metadata.gz: af0433aacb57daa0b9bf81dfe961f71ef71751215749201c18c1c81aa592d55050e4ed6d65605809ff6c36153cbbeb45e200181675dec23e13f884b70185ccab
7
+ data.tar.gz: c97c4a38ccdfabd869e6f5196eae73f32371d7bd12ff8e9612ede2cbfe89bb3bc563505429590ef65d928ba84d76cc06cf9c5f9eee0e79b161cbfd470da80cc0
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.5.1
2
+ - Refator specs and config files.
3
+
1
4
  # 0.5.0
2
5
  - Add type declaration files.
3
6
 
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2019-2021 Atsushi Tatsuma
1
+ Copyright (c) 2019-2022 Atsushi Tatsuma
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
data/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  [![Coverage Status](https://coveralls.io/repos/github/yoshoku/rumale-svm/badge.svg?branch=main)](https://coveralls.io/github/yoshoku/rumale-svm?branch=main)
5
5
  [![Gem Version](https://badge.fury.io/rb/rumale-svm.svg)](https://badge.fury.io/rb/rumale-svm)
6
6
  [![BSD 3-Clause License](https://img.shields.io/badge/License-BSD%203--Clause-orange.svg)](https://github.com/yoshoku/rumale-svm/blob/main/LICENSE.txt)
7
- [![Documentation](http://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/rumale-svm/doc/)
7
+ [![Documentation](https://img.shields.io/badge/api-reference-blue.svg)](https://yoshoku.github.io/rumale-svm/doc/)
8
8
 
9
9
  Rumale::SVM provides support vector machine algorithms in
10
10
  [LIBSVM](https://www.csie.ntu.edu.tw/~cjlin/libsvm/) and [LIBLINEAR](https://www.csie.ntu.edu.tw/~cjlin/liblinear/)
@@ -79,12 +79,8 @@ Accuracy: 0.835
79
79
 
80
80
  ## Contributing
81
81
 
82
- Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/rumale-svm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/yoshoku/rumale-svm. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](https://contributor-covenant.org) code of conduct.
83
83
 
84
84
  ## License
85
85
 
86
86
  The gem is available as open source under the terms of the [BSD-3-Clause License](https://opensource.org/licenses/BSD-3-Clause).
87
-
88
- ## Code of Conduct
89
-
90
- Everyone interacting in the Rumale::Svm project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/yoshoku/rumale-svm/blob/main/CODE_OF_CONDUCT.md).
@@ -5,6 +5,6 @@ module Rumale
5
5
  # This module consists of Rumale interfaces for suppor vector machine algorithms with LIBSVM and LIBLINEAR.
6
6
  module SVM
7
7
  # The version of Rumale-SVM you are using.
8
- VERSION = '0.5.0'
8
+ VERSION = '0.5.1'
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rumale-svm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - yoshoku
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-07-11 00:00:00.000000000 Z
11
+ date: 2022-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: numo-liblinear
@@ -45,6 +45,9 @@ dependencies:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0.14'
48
+ - - "<"
49
+ - !ruby/object:Gem::Version
50
+ version: '0.24'
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
@@ -52,29 +55,22 @@ dependencies:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
57
  version: '0.14'
58
+ - - "<"
59
+ - !ruby/object:Gem::Version
60
+ version: '0.24'
55
61
  description: 'Rumale-SVM provides support vector machine algorithms of LIBSVM and
56
62
  LIBLINEAR with Rumale interface.
57
63
 
58
- '
64
+ '
59
65
  email:
60
66
  - yoshoku@outlook.com
61
67
  executables: []
62
68
  extensions: []
63
69
  extra_rdoc_files: []
64
70
  files:
65
- - ".coveralls.yml"
66
- - ".github/workflows/build.yml"
67
- - ".github/workflows/coverage.yml"
68
- - ".gitignore"
69
- - ".rspec"
70
- - ".rubocop.yml"
71
71
  - CHANGELOG.md
72
- - CODE_OF_CONDUCT.md
73
- - Gemfile
74
72
  - LICENSE.txt
75
73
  - README.md
76
- - Rakefile
77
- - Steepfile
78
74
  - lib/rumale/svm.rb
79
75
  - lib/rumale/svm/linear_one_class_svm.rb
80
76
  - lib/rumale/svm/linear_svc.rb
@@ -86,7 +82,6 @@ files:
86
82
  - lib/rumale/svm/svc.rb
87
83
  - lib/rumale/svm/svr.rb
88
84
  - lib/rumale/svm/version.rb
89
- - rumale-svm.gemspec
90
85
  - sig/rumale/svm.rbs
91
86
  - sig/rumale/svm/linear_one_class_svm.rbs
92
87
  - sig/rumale/svm/linear_svc.rbs
@@ -105,7 +100,8 @@ metadata:
105
100
  source_code_uri: https://github.com/yoshoku/rumale-svm
106
101
  changelog_uri: https://github.com/yoshoku/rumale-svm/blob/main/CHANGELOG.md
107
102
  documentation_uri: https://yoshoku.github.io/rumale-svm/doc/
108
- post_install_message:
103
+ rubygems_mfa_required: 'true'
104
+ post_install_message:
109
105
  rdoc_options: []
110
106
  require_paths:
111
107
  - lib
@@ -120,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
116
  - !ruby/object:Gem::Version
121
117
  version: '0'
122
118
  requirements: []
123
- rubygems_version: 3.2.21
124
- signing_key:
119
+ rubygems_version: 3.2.33
120
+ signing_key:
125
121
  specification_version: 4
126
122
  summary: Rumale-SVM provides support vector machine algorithms of LIBSVM and LIBLINEAR
127
123
  with Rumale interface.
data/.coveralls.yml DELETED
@@ -1 +0,0 @@
1
- service_name: github-ci
@@ -1,20 +0,0 @@
1
- name: build
2
-
3
- on: [push, pull_request]
4
-
5
- jobs:
6
- build:
7
- runs-on: ubuntu-20.04
8
- strategy:
9
- fail-fast: false
10
- matrix:
11
- ruby: [ '2.6', '2.7', '3.0' ]
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Set up Ruby ${{ matrix.ruby }}
15
- uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: ${{ matrix.ruby }}
18
- bundler-cache: true
19
- - name: Build and test with Rake
20
- run: bundle exec rake
@@ -1,24 +0,0 @@
1
- name: coverage
2
-
3
- on:
4
- push:
5
- branches: [ main ]
6
- pull_request:
7
- branches: [ main ]
8
-
9
- jobs:
10
- coverage:
11
- runs-on: ubuntu-20.04
12
- steps:
13
- - uses: actions/checkout@v2
14
- - name: Set up Ruby 2.7
15
- uses: ruby/setup-ruby@v1
16
- with:
17
- ruby-version: '2.7'
18
- bundler-cache: true
19
- - name: Build and test with Rake
20
- run: bundle exec rake
21
- - name: Coveralls GitHub Action
22
- uses: coverallsapp/github-action@v1.1.2
23
- with:
24
- github-token: ${{ secrets.GITHUB_TOKEN }}
data/.gitignore DELETED
@@ -1,18 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /Gemfile.lock
4
- /_yardoc/
5
- /coverage/
6
- /doc/
7
- /pkg/
8
- /spec/reports/
9
- /tmp/
10
-
11
- # rspec failure tracking
12
- .rspec_status
13
-
14
- *.swp
15
- *.bundle
16
- tags
17
- .DS_Store
18
- .ruby-version
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/.rubocop.yml DELETED
@@ -1,111 +0,0 @@
1
- require:
2
- - rubocop-performance
3
- - rubocop-rake
4
- - rubocop-rspec
5
-
6
- AllCops:
7
- NewCops: enable
8
- TargetRubyVersion: 2.5
9
- DisplayCopNames: true
10
- DisplayStyleGuide: true
11
- Exclude:
12
- - 'bin/*'
13
- - 'rumale-svm.gemspec'
14
- - 'Rakefile'
15
- - 'Gemfile'
16
-
17
- Layout/EmptyLineAfterGuardClause:
18
- Enabled: false
19
-
20
- Layout/EmptyLinesAroundAttributeAccessor:
21
- Enabled: true
22
-
23
- Layout/LineLength:
24
- Max: 145
25
- IgnoredPatterns: ['(\A|\s)#']
26
-
27
- Layout/SpaceAroundMethodCallOperator:
28
- Enabled: true
29
-
30
- Lint/DeprecatedOpenSSLConstant:
31
- Enabled: true
32
-
33
- Lint/RaiseException:
34
- Enabled: true
35
-
36
- Lint/StructNewOverride:
37
- Enabled: true
38
-
39
- Metrics/ModuleLength:
40
- Max: 200
41
-
42
- Metrics/ClassLength:
43
- Max: 200
44
-
45
- Metrics/MethodLength:
46
- Max: 40
47
-
48
- Metrics/AbcSize:
49
- Max: 60
50
-
51
- Metrics/CyclomaticComplexity:
52
- Max: 16
53
-
54
- Metrics/PerceivedComplexity:
55
- Max: 16
56
-
57
- Metrics/BlockLength:
58
- Max: 40
59
- Exclude:
60
- - 'spec/**/*'
61
-
62
- Metrics/ParameterLists:
63
- Max: 12
64
-
65
- Naming/MethodParameterName:
66
- Enabled: false
67
-
68
- Naming/ConstantName:
69
- Enabled: false
70
-
71
- Security/MarshalLoad:
72
- Enabled: false
73
-
74
- Style/Documentation:
75
- Enabled: false
76
-
77
- Style/ExponentialNotation:
78
- Enabled: true
79
-
80
- Style/HashEachMethods:
81
- Enabled: true
82
-
83
- Style/HashTransformKeys:
84
- Enabled: true
85
-
86
- Style/HashTransformValues:
87
- Enabled: true
88
-
89
- Style/SlicingWithRange:
90
- Enabled: true
91
-
92
- Style/FormatStringToken:
93
- Enabled: false
94
-
95
- Style/NumericLiterals:
96
- Enabled: false
97
-
98
- RSpec/MultipleExpectations:
99
- Enabled: false
100
-
101
- RSpec/ExampleLength:
102
- Max: 40
103
-
104
- RSpec/InstanceVariable:
105
- Enabled: false
106
-
107
- RSpec/LeakyConstantDeclaration:
108
- Enabled: false
109
-
110
- RSpec/MultipleMemoizedHelpers:
111
- Max: 25
data/CODE_OF_CONDUCT.md DELETED
@@ -1,74 +0,0 @@
1
- # Contributor Covenant Code of Conduct
2
-
3
- ## Our Pledge
4
-
5
- In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to making participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, gender identity and expression, level of experience,
9
- nationality, personal appearance, race, religion, or sexual identity and
10
- orientation.
11
-
12
- ## Our Standards
13
-
14
- Examples of behavior that contributes to creating a positive environment
15
- include:
16
-
17
- * Using welcoming and inclusive language
18
- * Being respectful of differing viewpoints and experiences
19
- * Gracefully accepting constructive criticism
20
- * Focusing on what is best for the community
21
- * Showing empathy towards other community members
22
-
23
- Examples of unacceptable behavior by participants include:
24
-
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
26
- advances
27
- * Trolling, insulting/derogatory comments, and personal or political attacks
28
- * Public or private harassment
29
- * Publishing others' private information, such as a physical or electronic
30
- address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
32
- professional setting
33
-
34
- ## Our Responsibilities
35
-
36
- Project maintainers are responsible for clarifying the standards of acceptable
37
- behavior and are expected to take appropriate and fair corrective action in
38
- response to any instances of unacceptable behavior.
39
-
40
- Project maintainers have the right and responsibility to remove, edit, or
41
- reject comments, commits, code, wiki edits, issues, and other contributions
42
- that are not aligned to this Code of Conduct, or to ban temporarily or
43
- permanently any contributor for other behaviors that they deem inappropriate,
44
- threatening, offensive, or harmful.
45
-
46
- ## Scope
47
-
48
- This Code of Conduct applies both within project spaces and in public spaces
49
- when an individual is representing the project or its community. Examples of
50
- representing a project or community include using an official project e-mail
51
- address, posting via an official social media account, or acting as an appointed
52
- representative at an online or offline event. Representation of a project may be
53
- further defined and clarified by project maintainers.
54
-
55
- ## Enforcement
56
-
57
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
- reported by contacting the project team at yoshoku@outlook.com. All
59
- complaints will be reviewed and investigated and will result in a response that
60
- is deemed necessary and appropriate to the circumstances. The project team is
61
- obligated to maintain confidentiality with regard to the reporter of an incident.
62
- Further details of specific enforcement policies may be posted separately.
63
-
64
- Project maintainers who do not follow or enforce the Code of Conduct in good
65
- faith may face temporary or permanent repercussions as determined by other
66
- members of the project's leadership.
67
-
68
- ## Attribution
69
-
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at [http://contributor-covenant.org/version/1/4][version]
72
-
73
- [homepage]: http://contributor-covenant.org
74
- [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Specify your gem's dependencies in rumale-svm.gemspec
4
- gemspec
5
-
6
- gem 'rake', '~> 12.0'
7
- gem 'rspec', '~> 3.0'
8
- gem 'rubocop', '~> 1.0'
9
- gem 'rubocop-performance', '~> 1.8'
10
- gem 'rubocop-rake', '~> 0.5'
11
- gem 'rubocop-rspec', '~> 2.0'
12
- gem 'simplecov', '~> 0.21'
13
- gem 'simplecov-lcov', '~> 0.8'
14
- gem 'rbs', '~> 1.2'
15
- gem 'steep', '~> 0.44'
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task :default => :spec
data/Steepfile DELETED
@@ -1,20 +0,0 @@
1
- target :lib do
2
- signature "sig", "sig-deps"
3
- #
4
- check "lib" # Directory name
5
- # check "Gemfile" # File name
6
- # check "app/models/**/*.rb" # Glob
7
- # # ignore "lib/templates/*.rb"
8
- #
9
- # # library "pathname", "set" # Standard libraries
10
- library "numo-libsvm", "numo-liblinear" # Gems
11
- end
12
-
13
- # target :spec do
14
- # signature "sig", "sig-private"
15
- #
16
- # check "spec"
17
- #
18
- # # library "pathname", "set" # Standard libraries
19
- # # library "rspec"
20
- # end
data/rumale-svm.gemspec DELETED
@@ -1,37 +0,0 @@
1
- lib = File.expand_path('lib', __dir__)
2
- $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require 'rumale/svm/version'
4
-
5
- Gem::Specification.new do |spec|
6
- spec.name = 'rumale-svm'
7
- spec.version = Rumale::SVM::VERSION
8
- spec.authors = ['yoshoku']
9
- spec.email = ['yoshoku@outlook.com']
10
-
11
- spec.summary = <<~MSG
12
- Rumale-SVM provides support vector machine algorithms of LIBSVM and LIBLINEAR with Rumale interface.
13
- MSG
14
- spec.description = <<~MSG
15
- Rumale-SVM provides support vector machine algorithms of LIBSVM and LIBLINEAR with Rumale interface.
16
- MSG
17
- spec.homepage = 'https://github.com/yoshoku/rumale-svm'
18
- spec.license = 'BSD-3-Clause'
19
-
20
- spec.metadata['homepage_uri'] = spec.homepage
21
- spec.metadata['source_code_uri'] = 'https://github.com/yoshoku/rumale-svm'
22
- spec.metadata['changelog_uri'] = 'https://github.com/yoshoku/rumale-svm/blob/main/CHANGELOG.md'
23
- spec.metadata['documentation_uri'] = 'https://yoshoku.github.io/rumale-svm/doc/'
24
-
25
- # Specify which files should be added to the gem when it is released.
26
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features|sig-deps)/}) }
29
- end
30
- spec.bindir = 'exe'
31
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
32
- spec.require_paths = ['lib']
33
-
34
- spec.add_runtime_dependency 'numo-liblinear', '~> 1.1'
35
- spec.add_runtime_dependency 'numo-libsvm', '~> 1.0'
36
- spec.add_runtime_dependency 'rumale', '~> 0.14'
37
- end