rb-libsvm 1.1.1 → 1.1.2

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.
@@ -1,6 +1,6 @@
1
1
  require 'mkmf'
2
2
 
3
- # $CFLAGS << " -save-temps -ggdb3 "
3
+ $CFLAGS << " -save-temps -ggdb3 " if ENV['DEBUG']
4
4
  $LDFLAGS << " -lstdc++ "
5
5
 
6
6
  HEADER_DIRS = []
data/ext/libsvm/svm.cpp CHANGED
@@ -2747,6 +2747,7 @@ svm_model *svm_load_model(const char *model_file_name)
2747
2747
  model->probB = NULL;
2748
2748
  model->label = NULL;
2749
2749
  model->nSV = NULL;
2750
+ model->sv_indices = NULL;
2750
2751
 
2751
2752
  char cmd[81];
2752
2753
  while(1)
@@ -1,3 +1,3 @@
1
1
  module Libsvm
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
data/spec/model_spec.rb CHANGED
@@ -22,6 +22,9 @@ module ModelSpecHelper
22
22
  parameter.eps = 0.01
23
23
  parameter.c = 10
24
24
  parameter.probability = 1
25
+ parameter.kernel_type = Libsvm::KernelType::LINEAR
26
+ parameter.shrinking = 0
27
+ parameter.degree = 1
25
28
  parameter
26
29
  end
27
30
 
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.1.1
4
+ version: 1.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-02-02 00:00:00.000000000 Z
13
+ date: 2013-03-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rake-compiler
@@ -91,15 +91,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
91
91
  - - ! '>='
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
+ segments:
95
+ - 0
96
+ hash: 1035372475965383515
94
97
  required_rubygems_version: !ruby/object:Gem::Requirement
95
98
  none: false
96
99
  requirements:
97
100
  - - ! '>='
98
101
  - !ruby/object:Gem::Version
99
102
  version: '0'
103
+ segments:
104
+ - 0
105
+ hash: 1035372475965383515
100
106
  requirements: []
101
107
  rubyforge_project: rb-libsvm
102
- rubygems_version: 1.8.25
108
+ rubygems_version: 1.8.23
103
109
  signing_key:
104
110
  specification_version: 3
105
111
  summary: Ruby language bindings for LIBSVM