thundersvm 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +7 -0
- data/lib/thundersvm/ffi.rb +6 -1
- data/lib/thundersvm/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae30c2ef1dd4fdb6a1918a3c86e1a54d03a9498d139f47772aea3c6457abc2aa
|
4
|
+
data.tar.gz: d4a5fab10736b962ac0802f567294de1d31ec76d955aa5c6bf7e4bce85d30bc0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1aed380a2f70a5cd750fd9f510f9d988c85ef83abe076b520633ac41fd0ffdd13a18d7bf998ef9735bb45a5a3875d1e4a9d90880a8a969c68b342ac923aba29
|
7
|
+
data.tar.gz: e85d62af61205e557d4404e3e263c59f6c9cd2299436147d91cc2373f3d68820ae722fc6e877b5a59761a794362edf4c92c08bae77b7e70b93964796a977c990
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -16,6 +16,12 @@ Add this line to your application’s Gemfile:
|
|
16
16
|
gem 'thundersvm'
|
17
17
|
```
|
18
18
|
|
19
|
+
On Mac, also install OpenMP:
|
20
|
+
|
21
|
+
```sh
|
22
|
+
brew install libomp
|
23
|
+
```
|
24
|
+
|
19
25
|
## Getting Started
|
20
26
|
|
21
27
|
Prep your data
|
@@ -148,6 +154,7 @@ ThunderSVM.ffi_lib = "path/to/build/lib/libthundersvm.dll"
|
|
148
154
|
## Resources
|
149
155
|
|
150
156
|
- [ThunderSVM: A Fast SVM Library on GPUs and CPUs](https://github.com/Xtra-Computing/thundersvm/blob/master/thundersvm-full.pdf)
|
157
|
+
- [A Practical Guide to Support Vector Classification](https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf)
|
151
158
|
|
152
159
|
## History
|
153
160
|
|
data/lib/thundersvm/ffi.rb
CHANGED
@@ -7,7 +7,12 @@ module ThunderSVM
|
|
7
7
|
dlload Fiddle.dlopen(libs.shift)
|
8
8
|
rescue Fiddle::DLError => e
|
9
9
|
retry if libs.any?
|
10
|
-
|
10
|
+
|
11
|
+
if e.message.include?("Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib") && e.message.include?("Reason: image not found")
|
12
|
+
raise Fiddle::DLError, "OpenMP not found. Run `brew install libomp`"
|
13
|
+
else
|
14
|
+
raise e
|
15
|
+
end
|
11
16
|
end
|
12
17
|
|
13
18
|
extern "void thundersvm_train(int argc, char **argv)"
|
data/lib/thundersvm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thundersvm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|