tangram 0.4.0 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +3 -27
  4. data/docs/Tangram.html +3 -3
  5. data/docs/Tangram/BagOfWordsCosineSimilarityFeatureContribution.html +507 -0
  6. data/docs/Tangram/BagOfWordsFeatureContribution.html +2 -2
  7. data/docs/Tangram/Bigram.html +2 -2
  8. data/docs/Tangram/BinaryClassificationPredictOutput.html +2 -2
  9. data/docs/Tangram/FeatureContributions.html +2 -2
  10. data/docs/Tangram/IdentityFeatureContribution.html +2 -2
  11. data/docs/Tangram/LibTangram.html +3 -2
  12. data/docs/Tangram/LibTangram/TangramStringView.html +6 -6
  13. data/docs/Tangram/LoadModelOptions.html +2 -2
  14. data/docs/Tangram/Model.html +92 -92
  15. data/docs/Tangram/MulticlassClassificationPredictOutput.html +2 -2
  16. data/docs/Tangram/NormalizedFeatureContribution.html +2 -2
  17. data/docs/Tangram/OneHotEncodedFeatureContribution.html +2 -2
  18. data/docs/Tangram/PredictOptions.html +2 -2
  19. data/docs/Tangram/RegressionPredictOutput.html +2 -2
  20. data/docs/Tangram/Unigram.html +2 -2
  21. data/docs/Tangram/WordEmbeddingFeatureContribution.html +20 -20
  22. data/docs/_index.html +9 -2
  23. data/docs/class_list.html +1 -1
  24. data/docs/file.README.html +5 -27
  25. data/docs/index.html +5 -27
  26. data/docs/method_list.html +69 -29
  27. data/docs/top-level-namespace.html +2 -2
  28. data/examples/advanced/Gemfile +2 -0
  29. data/examples/advanced/Gemfile.lock +15 -0
  30. data/examples/advanced/README.md +14 -0
  31. data/examples/{heart_disease.tangram → advanced/heart_disease.tangram} +0 -0
  32. data/examples/{advanced.rb → advanced/main.rb} +0 -0
  33. data/examples/basic/Gemfile +2 -0
  34. data/examples/basic/Gemfile.lock +15 -0
  35. data/examples/basic/README.md +10 -0
  36. data/examples/basic/heart_disease.tangram +0 -0
  37. data/examples/{basic.rb → basic/main.rb} +0 -0
  38. data/lib/tangram/libtangram/aarch64-apple-darwin/libtangram.dylib +0 -0
  39. data/lib/tangram/libtangram/aarch64-unknown-linux-gnu/libtangram.so +0 -0
  40. data/lib/tangram/libtangram/aarch64-unknown-linux-musl/libtangram.so +0 -0
  41. data/lib/tangram/libtangram/x86_64-apple-darwin/libtangram.dylib +0 -0
  42. data/lib/tangram/libtangram/x86_64-pc-windows-msvc/tangram.dll +0 -0
  43. data/lib/tangram/libtangram/x86_64-unknown-linux-gnu/libtangram.so +0 -0
  44. data/lib/tangram/libtangram/x86_64-unknown-linux-musl/libtangram.so +0 -0
  45. data/tangram.gemspec +1 -1
  46. metadata +12 -4
@@ -100,9 +100,9 @@
100
100
  </div>
101
101
 
102
102
  <div id="footer">
103
- Generated on Wed May 12 10:45:10 2021 by
103
+ Generated on Thu Jul 1 17:11:32 2021 by
104
104
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
- 0.9.26 (ruby-2.6.7).
105
+ 0.9.26 (ruby-2.7.3).
106
106
  </div>
107
107
 
108
108
  </div>
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gem 'tangram'
@@ -0,0 +1,15 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ffi (1.15.3)
5
+ tangram (0.4.0)
6
+ ffi (~> 1)
7
+
8
+ PLATFORMS
9
+ ruby
10
+
11
+ DEPENDENCIES
12
+ tangram
13
+
14
+ BUNDLED WITH
15
+ 2.1.4
@@ -0,0 +1,14 @@
1
+ # Advanced
2
+
3
+ This example demonstrates logging predictions and true values to the Tangram app. Before running the example, run `tangram app` to start the app running locally, open `http://localhost:8080` in your browser, and upload the file `heart_disease.tangram` to it.
4
+
5
+ To run the example:
6
+
7
+ ```
8
+ $ bundle
9
+ $ TANGRAM_URL=http://localhost:8080 ruby main.rb
10
+ ```
11
+
12
+ Now if you refresh the production stats or production metrics tabs for the model you uploaded, you should see predictions and true values.
13
+
14
+ For more information, [read the docs](https://www.tangram.xyz/docs).
File without changes
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gem 'tangram'
@@ -0,0 +1,15 @@
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ ffi (1.15.3)
5
+ tangram (0.4.0)
6
+ ffi (~> 1)
7
+
8
+ PLATFORMS
9
+ ruby
10
+
11
+ DEPENDENCIES
12
+ tangram
13
+
14
+ BUNDLED WITH
15
+ 2.1.4
@@ -0,0 +1,10 @@
1
+ # Basic
2
+
3
+ This example demonstrates loading a model from a `.tangram` file and making a prediction.
4
+
5
+ To run the example:
6
+
7
+ ```
8
+ $ bundle
9
+ $ ruby main.rb
10
+ ```
File without changes
data/tangram.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "tangram"
3
- s.version = "0.4.0"
3
+ s.version = "0.5.0"
4
4
  s.summary = "Tangram for Ruby"
5
5
  s.description = "Make predictions with a Tangram model from your Ruby app. Learn more at https://www.tangram.xyz/."
6
6
  s.authors = ["Tangram"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tangram
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tangram
@@ -36,6 +36,7 @@ files:
36
36
  - LICENSE
37
37
  - README.md
38
38
  - docs/Tangram.html
39
+ - docs/Tangram/BagOfWordsCosineSimilarityFeatureContribution.html
39
40
  - docs/Tangram/BagOfWordsFeatureContribution.html
40
41
  - docs/Tangram/Bigram.html
41
42
  - docs/Tangram/BinaryClassificationPredictOutput.html
@@ -66,9 +67,16 @@ files:
66
67
  - docs/js/jquery.js
67
68
  - docs/method_list.html
68
69
  - docs/top-level-namespace.html
69
- - examples/advanced.rb
70
- - examples/basic.rb
71
- - examples/heart_disease.tangram
70
+ - examples/advanced/Gemfile
71
+ - examples/advanced/Gemfile.lock
72
+ - examples/advanced/README.md
73
+ - examples/advanced/heart_disease.tangram
74
+ - examples/advanced/main.rb
75
+ - examples/basic/Gemfile
76
+ - examples/basic/Gemfile.lock
77
+ - examples/basic/README.md
78
+ - examples/basic/heart_disease.tangram
79
+ - examples/basic/main.rb
72
80
  - lib/tangram.rb
73
81
  - lib/tangram/libtangram/aarch64-apple-darwin/libtangram.dylib
74
82
  - lib/tangram/libtangram/aarch64-unknown-linux-gnu/libtangram.so