weka 0.7.3-java → 0.7.4-java

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: c2dee943ecd6d4df29a0339de43d88b1d72171dcf84db300270fbc31cf4cedcf
4
- data.tar.gz: d6bec02306fbccec16ac31089dfb65d544673c4c6ebec870bb8cfa19cdc9c486
3
+ metadata.gz: 310f0b949799325e257c946671eb64352943838fa3facf2a0dce5b890942c347
4
+ data.tar.gz: 587d8621743cd68621debfb8b2f539e593b1b6ad39de766838ce121fcc673ab2
5
5
  SHA512:
6
- metadata.gz: 5b2f624be137dd9fe055d495f2fd356880d14da95ca8923f823f20f7a8cce4d54c09c6b173a4e7a17173f488a2c99b1cad73c8c86720a3c3eca80487a9413208
7
- data.tar.gz: 7d33b187f59f8de850cf23909728a6154c30490cf329cea8b50c26407906f90bd07a232b295217a63567529a17ef1b980fcf6da1125f79b8d0d29aa12c793d87
6
+ metadata.gz: 63a55f7a748cc3c8ab0325add976a603b64b584efd5b223dc96d6322e1bb0bf76ee96fa4d54a0662b8a1c01409f6fa70fe0818bda6d13726493268096a21ba78
7
+ data.tar.gz: c93c4839d4954c7878e61fa8b0954caf1328b7f67aa66d1de449b696e4272ea459418db6507aaeadaa7a389f78c3a1fdb5420f5d9c0c2425082dc399378c617a
data/CHANGELOG.md CHANGED
@@ -3,95 +3,132 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
6
- and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
+ and this project adheres to
7
+ [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
8
 
8
9
  ## [Unreleased]
9
10
 
11
+ ## [0.7.4] – 2022-03-25
12
+
13
+ ### Changed
14
+
15
+ - Update Weka Jar dependency to weka-dev v3.9.6
16
+ Please also refer to the weka changelog for included updates & fixes:
17
+ https://www.cs.waikato.ac.nz/~ml/weka/CHANGELOG-3-9-6
18
+ - Update dev dependencies
19
+
20
+ ### Fixed
21
+
22
+ - `#use_options` in JRuby v9.3.4.0 (passing kwargs in internal method failed)
23
+
10
24
  ## [0.7.3] – 2021-01-21
25
+
11
26
  ### Changed
27
+
12
28
  - Update Weka Jar dependency to weka-dev v3.9.5
13
29
  Please also refer to the weka changelog for included updates & fixes:
14
30
  https://www.cs.waikato.ac.nz/~ml/weka/CHANGELOG-3-9-5
15
31
  - Update dev dependencies
16
32
 
17
33
  ## [0.7.2] – 2020-03-20
34
+
18
35
  ### Changed
36
+
19
37
  - Update Weka Jar dependency to weka-dev v3.9.4
20
38
  Please also refer to the weka changelog for included updates & fixes:
21
39
  https://www.cs.waikato.ac.nz/~ml/weka/CHANGELOG-3-9-4
22
40
  - Drop shoulda-matchers as dev-dependency
23
41
 
24
42
  ## [0.7.1] – 2018-11-09
43
+
25
44
  ### Changed
45
+
26
46
  - Update Weka Jar dependency to weka-dev v3.9.3
27
47
  - Update rake to \~>12.0, jar-dependencies to \~>0.4
28
48
 
29
49
  ### Fixed
50
+
30
51
  - Float::NAN check in Weka::Core::Attributes#internal_value_of
31
52
 
32
53
  ## [0.7.0] – 2018-01-01
54
+
33
55
  ### Added
56
+
34
57
  - Add new unsupervised attribute filters added in weka-dev v3.9.2
35
58
  - Make classes from weka.filters module available
36
59
  - Make WeightedInstancesHandlerWrapper available in Weka::Classifiers::Meta
37
- - Make FilteredClusterer & MakeDensityBasedClusterer available in Weka::Clusterers
60
+ - Make FilteredClusterer & MakeDensityBasedClusterer available in
61
+ Weka::Clusterers
38
62
 
39
63
  ### Changed
64
+
40
65
  - Update Weka Jar dependency to weka-dev v3.9.2
41
66
 
42
67
  ## [0.6.0] – 2017-12-17
68
+
43
69
  ### Added
70
+
44
71
  - #copy method for Weka::Core::Instances
45
72
 
46
73
  ### Changed
74
+
47
75
  - Load Jars with jar-dependencies instead of lock_jar gem
48
76
  - Make Weka::Core::Instances#instance_from public
49
77
 
50
78
  ### Fixed
79
+
51
80
  - Weka::UnassignedTrainingInstancesError when running #classify/#cluster and
52
81
  #distribution_for on deserialized classfiers and clusterers
53
82
 
54
-
55
83
  ## [0.5.0] – 2017-06-17
84
+
56
85
  ### Added
86
+
57
87
  - #to_m (to Matrix) method for Weka::Core::Instances
58
88
  - Curve classes in Weka::Classifiers::Evaluation module
59
89
  - Allow including additional modules on class building
60
90
  - Rubocop config for project
61
91
 
62
92
  ### Changed
93
+
63
94
  - Allow passing a hash to Weka::Core::Instances#add_instance
64
95
 
65
96
  ### Removed
66
- - Block argument in Weka::Core::Instances#initialize
67
97
 
98
+ - Block argument in Weka::Core::Instances#initialize
68
99
 
69
100
  ## [0.4.0] – 2016-12-22
101
+
70
102
  ### Added
103
+
71
104
  - C45 converters
72
105
  - Full support for string attributes
73
106
 
74
107
  ### Removed
75
- - ActiveSupport as dependency
76
108
 
109
+ - ActiveSupport as dependency
77
110
 
78
111
  ## [0.3.0] – 2016-02-10
112
+
79
113
  ### Added
114
+
80
115
  - Allow adding Instances with missing values
81
116
  - Allow creating DenseInstances with missing values
82
117
  - #merge method for Weka::Core:Instances
83
118
 
84
-
85
119
  ## [0.2.0] – 2016-01-19
120
+
86
121
  ### Added
122
+
87
123
  - Serialization/deserialization functionality
88
124
  - #apply_filters method for Weka::Core::Instances
89
125
 
90
-
91
126
  ## [0.1.0] – 2015-12-26
127
+
92
128
  Initial release
93
129
 
94
- [Unreleased]: https://github.com/paulgoetze/weka-jruby/compare/v0.7.3...HEAD
130
+ [unreleased]: https://github.com/paulgoetze/weka-jruby/compare/v0.7.4...HEAD
131
+ [0.7.4]: https://github.com/paulgoetze/weka-jruby/compare/v0.7.3...v0.7.4
95
132
  [0.7.3]: https://github.com/paulgoetze/weka-jruby/compare/v0.7.2...v0.7.3
96
133
  [0.7.2]: https://github.com/paulgoetze/weka-jruby/compare/v0.7.1...v0.7.2
97
134
  [0.7.1]: https://github.com/paulgoetze/weka-jruby/compare/v0.7.0...v0.7.1
@@ -101,4 +138,5 @@ Initial release
101
138
  [0.4.0]: https://github.com/paulgoetze/weka-jruby/compare/v0.3.0...v0.4.0
102
139
  [0.3.0]: https://github.com/paulgoetze/weka-jruby/compare/v0.2.0...v0.3.0
103
140
  [0.2.0]: https://github.com/paulgoetze/weka-jruby/compare/v0.1.0...v0.2.0
104
- [0.1.0]: https://github.com/paulgoetze/weka-jruby/compare/ce6a985017c28ea755290a9baba4d81acddc2d20...v0.1.0
141
+ [0.1.0]:
142
+ https://github.com/paulgoetze/weka-jruby/compare/ce6a985017c28ea755290a9baba4d81acddc2d20...v0.1.0
data/CODE_OF_CONDUCT.md CHANGED
@@ -3,32 +3,32 @@
3
3
  ## Our Pledge
4
4
 
5
5
  In the interest of fostering an open and welcoming environment, we as
6
- contributors and maintainers pledge to make participation in our project and
7
- our community a harassment-free experience for everyone, regardless of age, body
8
- size, disability, ethnicity, sex characteristics, gender identity and expression,
9
- level of experience, education, socio-economic status, nationality, personal
10
- appearance, race, religion, or sexual identity and orientation.
6
+ contributors and maintainers pledge to make participation in our project and our
7
+ community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and
9
+ expression, level of experience, education, socio-economic status, nationality,
10
+ personal appearance, race, religion, or sexual identity and orientation.
11
11
 
12
12
  ## Our Standards
13
13
 
14
14
  Examples of behavior that contributes to creating a positive environment
15
15
  include:
16
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
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
22
 
23
23
  Examples of unacceptable behavior by participants include:
24
24
 
25
- * The use of sexualized language or imagery and unwelcome sexual attention or
25
+ - The use of sexualized language or imagery and unwelcome sexual attention or
26
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
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
30
  address, without explicit permission
31
- * Other conduct which could reasonably be considered inappropriate in a
31
+ - Other conduct which could reasonably be considered inappropriate in a
32
32
  professional setting
33
33
 
34
34
  ## Our Responsibilities
@@ -37,11 +37,11 @@ Project maintainers are responsible for clarifying the standards of acceptable
37
37
  behavior and are expected to take appropriate and fair corrective action in
38
38
  response to any instances of unacceptable behavior.
39
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.
40
+ Project maintainers have the right and responsibility to remove, edit, or reject
41
+ comments, commits, code, wiki edits, issues, and other contributions that are
42
+ not aligned to this Code of Conduct, or to ban temporarily or permanently any
43
+ contributor for other behaviors that they deem inappropriate, threatening,
44
+ offensive, or harmful.
45
45
 
46
46
  ## Scope
47
47
 
@@ -58,8 +58,9 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
58
  reported by contacting the project team at paul.christoph.goetze@gmail.com. All
59
59
  complaints will be reviewed and investigated and will result in a response that
60
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.
61
+ obligated to maintain confidentiality with regard to the reporter of an
62
+ incident. Further details of specific enforcement policies may be posted
63
+ separately.
63
64
 
64
65
  Project maintainers who do not follow or enforce the Code of Conduct in good
65
66
  faith may face temporary or permanent repercussions as determined by other
@@ -67,8 +68,9 @@ members of the project's leadership.
67
68
 
68
69
  ## Attribution
69
70
 
70
- This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
- available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
71
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage],
72
+ version 1.4, available at
73
+ https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
74
 
73
75
  [homepage]: https://www.contributor-covenant.org
74
76
 
data/MIT-LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2015-2021 Paul Götze
1
+ Copyright (c) 2015-2022 Paul Götze
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,11 +1,10 @@
1
1
  # Weka
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/weka.svg)](http://badge.fury.io/rb/weka)
4
3
  [![Build Status](https://github.com/paulgoetze/weka-jruby/workflows/JRuby%20CI/badge.svg)](https://github.com/paulgoetze/weka-jruby/workflows/JRuby%20CI/badge.svg)
5
- [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9634a6709ef545198e079a8daddff100)](https://www.codacy.com/app/paul-christoph-goetze/weka-jruby?utm_source=github.com&utm_medium=referral&utm_content=paulgoetze/weka-jruby&utm_campaign=Badge_Grade)
6
- [![Open Source Helpers](https://www.codetriage.com/paulgoetze/weka-jruby/badges/users.svg)](https://www.codetriage.com/paulgoetze/weka-jruby)
4
+ [![Gem Version](https://badge.fury.io/rb/weka.svg)](http://badge.fury.io/rb/weka)
7
5
 
8
- Machine Learning & Data Mining with JRuby based on the [Weka](http://www.cs.waikato.ac.nz/~ml/weka/index.html) Java library.
6
+ Machine Learning & Data Mining with JRuby based on the
7
+ [Weka](http://www.cs.waikato.ac.nz/~ml/weka/index.html) Java library.
9
8
 
10
9
  ## Installation
11
10
 
@@ -31,29 +30,42 @@ Use Weka's Machine Learning and Data Mining algorithms by requiring the gem:
31
30
  require 'weka'
32
31
  ```
33
32
 
34
- The weka gem tries to carry over the namespaces defined in Weka and enhances some interfaces in order to allow a more Ruby-ish programming style when using the Weka library.
33
+ The weka gem tries to carry over the namespaces defined in Weka and enhances
34
+ some interfaces in order to allow a more Ruby-ish programming style when using
35
+ the Weka library.
35
36
 
36
- The idea behind keeping the namespaces is, that you can also use the [Weka documentation](http://weka.sourceforge.net/doc.dev/) for looking up functionality and classes.
37
+ The idea behind keeping the namespaces is, that you can also use the
38
+ [Weka documentation](http://weka.sourceforge.net/doc.dev/) for looking up
39
+ functionality and classes.
37
40
 
38
- Please refer to [the gem’s Wiki](https://github.com/paulgoetze/weka-jruby/wiki) for
39
- detailed information about how to use weka with JRuby and some examplary code snippets.
41
+ Please refer to [the gem’s Wiki](https://github.com/paulgoetze/weka-jruby/wiki)
42
+ for detailed information about how to use weka with JRuby and some examplary
43
+ code snippets.
40
44
 
41
45
  ## Development
42
46
 
43
47
  1. Check out the repo with `git clone git@github.com:paulgoetze/weka-jruby.git`.
44
- 2. Set a local environment variable `export JARS_VENDOR=false`.
45
- This will prevent
46
- compiling the jars into your repo’s /lib directory and will load them from your local maven repository instead.
47
- See the [jar-dependencies README](https://github.com/mkristian/jar-dependencies#for-development-you-do-not-need-to-vendor-the-jars-at-all) for more information.
48
+ 2. Set a local environment variable `export JARS_VENDOR=false`. This will
49
+ prevent compiling the jars into your repo’s /lib directory and will load them
50
+ from your local maven repository instead. See the
51
+ [jar-dependencies README](https://github.com/mkristian/jar-dependencies#for-development-you-do-not-need-to-vendor-the-jars-at-all)
52
+ for more information.
48
53
  3. Run `bin/setup` or `bundle install` to install the dependencies.
49
54
 
50
- Then, run `rake spec` to run the tests. You can also run `bin/console` or `rake irb` for an interactive prompt that will allow you to experiment.
55
+ Then, run `rake spec` to run the tests. You can also run `bin/console` or
56
+ `rake irb` for an interactive prompt that will allow you to experiment.
51
57
 
52
58
  ## Contributing
53
59
 
54
- Bug reports and pull requests are welcome on GitHub at https://github.com/paulgoetze/weka-jruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant Code of Conduct](https://github.com/paulgoetze/weka-jruby/blob/main/CODE_OF_CONDUCT.md).
60
+ Bug reports and pull requests are welcome on GitHub at
61
+ https://github.com/paulgoetze/weka-jruby. This project is intended to be a safe,
62
+ welcoming space for collaboration, and contributors are expected to adhere to
63
+ the
64
+ [Contributor Covenant Code of Conduct](https://github.com/paulgoetze/weka-jruby/blob/main/CODE_OF_CONDUCT.md).
55
65
 
56
- For development we use the [git branching model](http://nvie.com/posts/a-successful-git-branching-model/) described by [nvie](https://github.com/nvie).
66
+ For development we use the
67
+ [git branching model](http://nvie.com/posts/a-successful-git-branching-model/)
68
+ described by [nvie](https://github.com/nvie).
57
69
 
58
70
  Here’s how to contribute:
59
71
 
@@ -63,15 +75,21 @@ Here’s how to contribute:
63
75
  4. Push to the branch (`git push origin feature/my-new-feature`)
64
76
  5. Create a new Pull Request
65
77
 
66
- Please try to add RSpec tests along with your new feature. This will ensure that your code does not break existing functionality and that your feature is working as expected.
78
+ Please try to add RSpec tests along with your new feature. This will ensure that
79
+ your code does not break existing functionality and that your feature is working
80
+ as expected.
67
81
 
68
- We use [Rubocop](https://github.com/bbatsov/rubocop) for code style recommendations.
69
- Please make sure your contributions comply with the project’s Rubocop config.
82
+ We use [Rubocop](https://github.com/bbatsov/rubocop) for code style
83
+ recommendations. Please make sure your contributions comply with the project’s
84
+ Rubocop config.
70
85
 
71
86
  ## Acknowledgement
72
87
 
73
- The original ideas for wrapping Weka in JRuby come from [@arrigonialberto86](https://github.com/arrigonialberto86) and his [ruby-band](https://github.com/arrigonialberto86/ruby-band) gem. Great thanks!
88
+ The original ideas for wrapping Weka in JRuby come from
89
+ [@arrigonialberto86](https://github.com/arrigonialberto86) and his
90
+ [ruby-band](https://github.com/arrigonialberto86/ruby-band) gem. Great thanks!
74
91
 
75
92
  ## License
76
93
 
77
- The gem is available as open source under the terms of the [MIT License](https://github.com/paulgoetze/weka-jruby/blob/main/MIT-LICENSE.txt).
94
+ The gem is available as open source under the terms of the
95
+ [MIT License](https://github.com/paulgoetze/weka-jruby/blob/main/MIT-LICENSE.txt).
@@ -29,10 +29,10 @@ module Weka
29
29
 
30
30
  private
31
31
 
32
- def join_options(*single_options, **hash_options)
32
+ def join_options(single_options, hash_options)
33
33
  [
34
- join_single_options(*single_options),
35
- join_hash_options(**hash_options)
34
+ join_single_options(single_options),
35
+ join_hash_options(hash_options)
36
36
  ].reject(&:empty?).join(' ')
37
37
  end
38
38
 
data/lib/weka/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Weka
2
- VERSION = '0.7.3'.freeze
2
+ VERSION = '0.7.4'.freeze
3
3
  end
data/weka.gemspec CHANGED
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
25
25
 
26
26
  spec.add_development_dependency 'bundler', '~> 2.0'
27
27
  spec.add_development_dependency 'rake', '~> 13.0'
28
- spec.add_development_dependency 'rspec', '~> 3.10'
28
+ spec.add_development_dependency 'rspec', '~> 3.11'
29
29
 
30
30
  spec.add_runtime_dependency 'jar-dependencies', '~> 0.4.1'
31
- spec.requirements << 'jar nz.ac.waikato.cms.weka, weka-dev, 3.9.5'
31
+ spec.requirements << 'jar nz.ac.waikato.cms.weka, weka-dev, 3.9.6'
32
32
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: weka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: java
6
6
  authors:
7
7
  - Paul Götze
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-21 00:00:00.000000000 Z
11
+ date: 2022-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: '2.0'
19
19
  name: bundler
20
- type: :development
21
20
  prerelease: false
21
+ type: :development
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -31,8 +31,8 @@ dependencies:
31
31
  - !ruby/object:Gem::Version
32
32
  version: '13.0'
33
33
  name: rake
34
- type: :development
35
34
  prerelease: false
35
+ type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
@@ -43,15 +43,15 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '3.10'
46
+ version: '3.11'
47
47
  name: rspec
48
- type: :development
49
48
  prerelease: false
49
+ type: :development
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.10'
54
+ version: '3.11'
55
55
  - !ruby/object:Gem::Dependency
56
56
  requirement: !ruby/object:Gem::Requirement
57
57
  requirements:
@@ -59,8 +59,8 @@ dependencies:
59
59
  - !ruby/object:Gem::Version
60
60
  version: 0.4.1
61
61
  name: jar-dependencies
62
- type: :runtime
63
62
  prerelease: false
63
+ type: :runtime
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
@@ -147,8 +147,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  - !ruby/object:Gem::Version
148
148
  version: '0'
149
149
  requirements:
150
- - jar nz.ac.waikato.cms.weka, weka-dev, 3.9.5
151
- rubygems_version: 3.0.6
150
+ - jar nz.ac.waikato.cms.weka, weka-dev, 3.9.6
151
+ rubygems_version: 3.2.29
152
152
  signing_key:
153
153
  specification_version: 4
154
154
  summary: Machine Learning & Data Mining with JRuby.