rb-libsvm 1.3.0 → 1.3.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 +4 -4
- data/CHANGELOG.md +8 -0
- data/ext/libsvm/libsvm.c +6 -6
- data/ext/libsvm/svm.h +1 -1
- data/lib/libsvm/node.rb +4 -4
- data/lib/libsvm/problem.rb +2 -2
- data/lib/libsvm/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c04b43e9bcd03b81b5e928566c8449f91650bfc4
|
4
|
+
data.tar.gz: 1338454d938aeffdb2bfcc371f994177982bd984
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4dbead862bfa6284ed286759cd6215764fe3f4124162bcd3e7f5a441ac540ba41eab7ada12a4a2c221220ff322b443421f4e663189eb65bc7d939eb8dfa9236
|
7
|
+
data.tar.gz: 5512309213d09e792e2e12b2c753a12b800020f7696f6b46dd04fe5e67e5041af9b61e199465ac87c58f18ab9c4bc4f78cfa6edf51270d769a65ff7fbd0ea979
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
|
5
|
+
## [1.3.1] - 2015-03-21
|
6
|
+
### Fixed
|
7
|
+
- Spelling and punctuation in documentation comments
|
8
|
+
- Fix LIBSVM_VERSION header; now correctly specifies 320
|
data/ext/libsvm/libsvm.c
CHANGED
@@ -484,7 +484,7 @@ static VALUE cModel_support_vectors_count(VALUE obj)
|
|
484
484
|
/* call-seq:
|
485
485
|
* Model.load(filename) # => model
|
486
486
|
*
|
487
|
-
* Load a {Libsvm::Model} from a file
|
487
|
+
* Load a {Libsvm::Model} from a file.
|
488
488
|
*
|
489
489
|
* This load a model from file `filename`. Format is the LIBSVM
|
490
490
|
* internal file representation of the model.
|
@@ -596,23 +596,23 @@ void Init_libsvm_ext() {
|
|
596
596
|
*/
|
597
597
|
mKernelType = rb_define_module_under(mLibsvm, "KernelType");
|
598
598
|
/**
|
599
|
-
* A linear kernel
|
599
|
+
* A linear kernel; or not using a kernel.
|
600
600
|
*/
|
601
601
|
rb_define_const(mKernelType, "LINEAR", INT2NUM(LINEAR));
|
602
602
|
/**
|
603
|
-
* A polynomial kernel
|
603
|
+
* A polynomial kernel.
|
604
604
|
*/
|
605
605
|
rb_define_const(mKernelType, "POLY", INT2NUM(POLY));
|
606
606
|
/**
|
607
|
-
* A
|
607
|
+
* A radial basis function kernel.
|
608
608
|
*/
|
609
609
|
rb_define_const(mKernelType, "RBF", INT2NUM(RBF));
|
610
610
|
/**
|
611
|
-
* A sigmoid kernel
|
611
|
+
* A sigmoid kernel.
|
612
612
|
*/
|
613
613
|
rb_define_const(mKernelType, "SIGMOID", INT2NUM(SIGMOID));
|
614
614
|
/**
|
615
|
-
* A precomputed kernel
|
615
|
+
* A precomputed kernel.
|
616
616
|
*/
|
617
617
|
rb_define_const(mKernelType, "PRECOMPUTED", INT2NUM(PRECOMPUTED));
|
618
618
|
|
data/ext/libsvm/svm.h
CHANGED
data/lib/libsvm/node.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libsvm
|
2
|
-
#
|
2
|
+
# This class represents a feature.
|
3
3
|
#
|
4
4
|
# A feature has an index and a value.
|
5
5
|
#
|
@@ -77,10 +77,10 @@ module Libsvm
|
|
77
77
|
end
|
78
78
|
|
79
79
|
# @!attribute index
|
80
|
-
# The index identifies the feature for which this node represents a value
|
80
|
+
# The index identifies the feature for which this node represents a value.
|
81
81
|
|
82
82
|
# @!attribute value
|
83
|
-
# The value of this feature in this instance
|
83
|
+
# The value of this feature in this instance.
|
84
84
|
|
85
85
|
# Create a new feature node.
|
86
86
|
#
|
@@ -99,7 +99,7 @@ module Libsvm
|
|
99
99
|
index == other.index && value == other.value
|
100
100
|
end
|
101
101
|
|
102
|
-
def inspect
|
102
|
+
def inspect
|
103
103
|
vars = %w(index value).map { |name|
|
104
104
|
"#{name}=#{send(name)}"
|
105
105
|
}.join(", ")
|
data/lib/libsvm/problem.rb
CHANGED
@@ -2,7 +2,7 @@ module Libsvm
|
|
2
2
|
# This file only contains documentation comments. See
|
3
3
|
# ext/libsvm/libsvm.c for implementation.
|
4
4
|
|
5
|
-
# Represents a training set (alternatively called problem).
|
5
|
+
# Represents a training set (alternatively called `problem').
|
6
6
|
#
|
7
7
|
# In contains labels and examples in equal number.
|
8
8
|
#
|
@@ -13,7 +13,7 @@ module Libsvm
|
|
13
13
|
# @!attribute [r] l
|
14
14
|
#
|
15
15
|
# The number of labels and examples in this traning set. (The name
|
16
|
-
# is
|
16
|
+
# is lowercase-L.)
|
17
17
|
#
|
18
18
|
# @return [Integer]
|
19
19
|
end
|
data/lib/libsvm/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rb-libsvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- C. Florian Ebeling
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-03-21 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake-compiler
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- ".gitignore"
|
53
53
|
- ".rvmrc"
|
54
54
|
- ".travis.yml"
|
55
|
+
- CHANGELOG.md
|
55
56
|
- Gemfile
|
56
57
|
- LIBSVM-LICENSE
|
57
58
|
- MIT-LICENSE
|
@@ -111,3 +112,4 @@ test_files:
|
|
111
112
|
- spec/problem_spec.rb
|
112
113
|
- spec/spec_helper.rb
|
113
114
|
- spec/usage_spec.rb
|
115
|
+
has_rdoc:
|