tlearn 0.0.3 → 0.0.4
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.
- data/ext/tlearn/tlearn_ext.c +0 -1
- data/lib/tlearn.rb +9 -1
- metadata +3 -4
data/ext/tlearn/tlearn_ext.c
CHANGED
|
@@ -253,7 +253,6 @@ int run(learning, loadflag, nsweeps, file_path, backprop, current_weights_output
|
|
|
253
253
|
int ticks = 0; /* counter for ticks */
|
|
254
254
|
int reset = 0; /* flag for resetting net */
|
|
255
255
|
|
|
256
|
-
int command = 1; /* flag for writing to .cmd file */
|
|
257
256
|
int iflag = 0; /* flag for -I */
|
|
258
257
|
int tflag = 0; /* flag for -T */
|
|
259
258
|
int rflag = 0; /* flag for -x */
|
data/lib/tlearn.rb
CHANGED
|
@@ -8,7 +8,15 @@ require 'tlearn/run_tlearn'
|
|
|
8
8
|
require 'tlearn/run'
|
|
9
9
|
|
|
10
10
|
def tlearn_extension
|
|
11
|
-
File.exists?(File.dirname(__FILE__) + '/tlearn.so')
|
|
11
|
+
if File.exists?(File.dirname(__FILE__) + '/tlearn.so')
|
|
12
|
+
'tlearn.so'
|
|
13
|
+
elsif File.exists?(File.dirname(__FILE__) + '/tlearn.bundle')
|
|
14
|
+
'tlearn.bundle'
|
|
15
|
+
elsif File.exists?(File.dirname(__FILE__) + '/tlearn/tlearn.so')
|
|
16
|
+
'tlearn/tlearn.so'
|
|
17
|
+
elsif File.exists?(File.dirname(__FILE__) + '/tlearn/tlearn.bundle')
|
|
18
|
+
'tlearn/tlearn.bundle'
|
|
19
|
+
end
|
|
12
20
|
end
|
|
13
21
|
|
|
14
22
|
require tlearn_extension
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tlearn
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-11-03 00:00:00.
|
|
12
|
+
date: 2012-11-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description:
|
|
15
15
|
email:
|
|
@@ -57,9 +57,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
57
57
|
version: '0'
|
|
58
58
|
requirements: []
|
|
59
59
|
rubyforge_project:
|
|
60
|
-
rubygems_version: 1.8.
|
|
60
|
+
rubygems_version: 1.8.24
|
|
61
61
|
signing_key:
|
|
62
62
|
specification_version: 3
|
|
63
63
|
summary: Ruby bindings for tlearn
|
|
64
64
|
test_files: []
|
|
65
|
-
has_rdoc:
|