tangram 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/Tangram.html +4 -3
  4. data/docs/Tangram/BagOfWordsCosineSimilarityFeatureContribution.html +24 -13
  5. data/docs/Tangram/BagOfWordsFeatureContribution.html +24 -13
  6. data/docs/Tangram/Bigram.html +16 -9
  7. data/docs/Tangram/BinaryClassificationPredictOutput.html +20 -11
  8. data/docs/Tangram/FeatureContributions.html +20 -11
  9. data/docs/Tangram/IdentityFeatureContribution.html +20 -11
  10. data/docs/Tangram/LibTangram.html +2 -2
  11. data/docs/Tangram/LibTangram/TangramStringView.html +2 -2
  12. data/docs/Tangram/LoadModelOptions.html +12 -7
  13. data/docs/Tangram/Model.html +83 -43
  14. data/docs/Tangram/MulticlassClassificationPredictOutput.html +24 -13
  15. data/docs/Tangram/NormalizedFeatureContribution.html +20 -11
  16. data/docs/Tangram/OneHotEncodedFeatureContribution.html +24 -13
  17. data/docs/Tangram/PredictOptions.html +16 -9
  18. data/docs/Tangram/RegressionPredictOutput.html +16 -9
  19. data/docs/Tangram/Unigram.html +12 -7
  20. data/docs/Tangram/WordEmbeddingFeatureContribution.html +20 -11
  21. data/docs/_index.html +2 -2
  22. data/docs/file.README.html +14 -13
  23. data/docs/index.html +14 -13
  24. data/docs/top-level-namespace.html +2 -2
  25. data/examples/advanced/README.md +1 -1
  26. data/examples/advanced/main.rb +1 -1
  27. data/lib/tangram/libtangram/aarch64-apple-darwin/libtangram.dylib +0 -0
  28. data/lib/tangram/libtangram/aarch64-unknown-linux-gnu/libtangram.so +0 -0
  29. data/lib/tangram/libtangram/aarch64-unknown-linux-musl/libtangram.so +0 -0
  30. data/lib/tangram/libtangram/x86_64-apple-darwin/libtangram.dylib +0 -0
  31. data/lib/tangram/libtangram/x86_64-pc-windows-msvc/tangram.dll +0 -0
  32. data/lib/tangram/libtangram/x86_64-unknown-linux-gnu/libtangram.so +0 -0
  33. data/lib/tangram/libtangram/x86_64-unknown-linux-musl/libtangram.so +0 -0
  34. data/lib/tangram/tangram.rb +4 -4
  35. data/tangram.gemspec +4 -4
  36. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c07da46765f145211789d113f2749f5c2d597f58a1abd7f264b280bf7a9a485
4
- data.tar.gz: 8a5e5f1618229ec66e1849662558c52b0f52198e40fe33c6198de334d25389b3
3
+ metadata.gz: 3b18a96257b5b7495c1e1be631f1d4aae94b2dba0ed47691ddf4c233e1909665
4
+ data.tar.gz: 017c2a846b94f6d9b6e901ad53ed04842ae123dff214fc7b0f641e9cf7c17dfe
5
5
  SHA512:
6
- metadata.gz: f6f090c8b6a43e380600922ac4b693ccda457f5cda9db021f16e10aed0326580bc199e920e8ed1fe41b7f35c737d70701ae70cd2794021aa68ab76ab37560ac7
7
- data.tar.gz: '082ff0a8e291f920ad81ebbe2f51c2dd203f2085df6b7aaf646440827988d5305bfea5c7e9e671eb529652d2a6e8ab183961ea7ec1a796a8e833b74352cb7287'
6
+ metadata.gz: 8da9e0efc9b1b90be41721a1738491822f68d2d0cec2258f48c99a99de0383ae99e85001c80234b2516fe0acf935d93e7d82e259e3742bc4e341b2ee8822ed1d
7
+ data.tar.gz: b5241288d4c8566622f39520f63c7dc340672668731bf7c71613a976954da3dc65bbf5a24a00e0326f65c32d4425fbe17eb841a1c5cfcaa6dfe75e8f3bb1448f
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Tangram for Ruby
2
2
 
3
- - [Watch the Video](https://www.tangram.xyz)
4
- - [Read the Docs](https://www.tangram.xyz/docs)
3
+ - [Watch the Video](https://www.tangram.dev)
4
+ - [Read the Docs](https://www.tangram.dev/docs)
5
5
 
6
6
  The Tangram Ruby library makes it easy to make predictions with your Tangram machine learning model from Ruby.
7
7
 
@@ -25,11 +25,11 @@ input = {
25
25
  output = model.predict(input)
26
26
  ```
27
27
 
28
- For more information, [read the docs](https://www.tangram.xyz/docs).
28
+ For more information, [read the docs](https://www.tangram.dev/docs).
29
29
 
30
30
  ## Platform Support
31
31
 
32
- Tangram for Ruby is currently supported on Linux, macOS, and Windows with ARM64 and AMD64 CPUs. Are you interested in another platform? [Open an issue](https://github.com/tangramxyz/tangram/issues/new) or send us an email at [help@tangram.xyz](mailto:help@tangram.xyz).
32
+ Tangram for Ruby is currently supported on Linux, macOS, and Windows with ARM64 and AMD64 CPUs. Are you interested in another platform? [Open an issue](https://github.com/tangramdotdev/tangram/issues/new) or send us an email at [help@tangram.dev](mailto:help@tangram.dev).
33
33
 
34
34
  ## Examples
35
35
 
data/docs/Tangram.html CHANGED
@@ -85,7 +85,8 @@
85
85
 
86
86
  <h2>Overview</h2><div class="docstring">
87
87
  <div class="discussion">
88
- <p>This is the main module in the <code>tangram</code> gem.</p>
88
+
89
+ <p>This is the main module in the <code>tangram</code> gem.</p>
89
90
 
90
91
 
91
92
  </div>
@@ -117,9 +118,9 @@
117
118
  </div>
118
119
 
119
120
  <div id="footer">
120
- Generated on Thu Jul 15 14:34:33 2021 by
121
+ Generated on Mon Jul 26 14:54:00 2021 by
121
122
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
122
- 0.9.26 (ruby-2.7.3).
123
+ 0.9.26 (ruby-2.7.4).
123
124
  </div>
124
125
 
125
126
  </div>
@@ -101,7 +101,8 @@
101
101
 
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
- <p>This describes the contribution of a feature from a bag of words cosine similarity feature group.</p>
104
+
105
+ <p>This describes the contribution of a feature from a bag of words cosine similarity feature group.</p>
105
106
 
106
107
 
107
108
  </div>
@@ -138,7 +139,8 @@
138
139
 
139
140
 
140
141
 
141
- <span class="summary_desc"><div class='inline'><p>This is the name of the source column a for the feature group.</p>
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>This is the name of the source column a for the feature group.</p>
142
144
  </div></span>
143
145
 
144
146
  </li>
@@ -166,7 +168,8 @@
166
168
 
167
169
 
168
170
 
169
- <span class="summary_desc"><div class='inline'><p>This is the name of the source column b for the feature group.</p>
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>This is the name of the source column b for the feature group.</p>
170
173
  </div></span>
171
174
 
172
175
  </li>
@@ -194,7 +197,8 @@
194
197
 
195
198
 
196
199
 
197
- <span class="summary_desc"><div class='inline'><p>This is the amount that the feature contributed to the output.</p>
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>This is the amount that the feature contributed to the output.</p>
198
202
  </div></span>
199
203
 
200
204
  </li>
@@ -222,7 +226,8 @@
222
226
 
223
227
 
224
228
 
225
- <span class="summary_desc"><div class='inline'><p>This is the value of the feature.</p>
229
+ <span class="summary_desc"><div class='inline'>
230
+ <p>This is the value of the feature.</p>
226
231
  </div></span>
227
232
 
228
233
  </li>
@@ -260,7 +265,8 @@
260
265
 
261
266
 
262
267
 
263
- <span class="summary_desc"><div class='inline'><p>A new instance of BagOfWordsCosineSimilarityFeatureContribution.</p>
268
+ <span class="summary_desc"><div class='inline'>
269
+ <p>A new instance of BagOfWordsCosineSimilarityFeatureContribution.</p>
264
270
  </div></span>
265
271
 
266
272
  </li>
@@ -283,7 +289,8 @@
283
289
 
284
290
  </h3><div class="docstring">
285
291
  <div class="discussion">
286
- <p>Returns a new instance of BagOfWordsCosineSimilarityFeatureContribution.</p>
292
+
293
+ <p>Returns a new instance of BagOfWordsCosineSimilarityFeatureContribution.</p>
287
294
 
288
295
 
289
296
  </div>
@@ -336,7 +343,8 @@
336
343
 
337
344
  </h3><div class="docstring">
338
345
  <div class="discussion">
339
- <p>This is the name of the source column a for the feature group.</p>
346
+
347
+ <p>This is the name of the source column a for the feature group.</p>
340
348
 
341
349
 
342
350
  </div>
@@ -378,7 +386,8 @@
378
386
 
379
387
  </h3><div class="docstring">
380
388
  <div class="discussion">
381
- <p>This is the name of the source column b for the feature group.</p>
389
+
390
+ <p>This is the name of the source column b for the feature group.</p>
382
391
 
383
392
 
384
393
  </div>
@@ -420,7 +429,8 @@
420
429
 
421
430
  </h3><div class="docstring">
422
431
  <div class="discussion">
423
- <p>This is the amount that the feature contributed to the output.</p>
432
+
433
+ <p>This is the amount that the feature contributed to the output.</p>
424
434
 
425
435
 
426
436
  </div>
@@ -462,7 +472,8 @@
462
472
 
463
473
  </h3><div class="docstring">
464
474
  <div class="discussion">
465
- <p>This is the value of the feature.</p>
475
+
476
+ <p>This is the value of the feature.</p>
466
477
 
467
478
 
468
479
  </div>
@@ -497,9 +508,9 @@
497
508
  </div>
498
509
 
499
510
  <div id="footer">
500
- Generated on Thu Jul 15 14:34:34 2021 by
511
+ Generated on Mon Jul 26 14:54:00 2021 by
501
512
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
502
- 0.9.26 (ruby-2.7.3).
513
+ 0.9.26 (ruby-2.7.4).
503
514
  </div>
504
515
 
505
516
  </div>
@@ -101,7 +101,8 @@
101
101
 
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
- <p>This describes the contribution of a feature from a bag of words feature group.</p>
104
+
105
+ <p>This describes the contribution of a feature from a bag of words feature group.</p>
105
106
 
106
107
 
107
108
  </div>
@@ -138,7 +139,8 @@
138
139
 
139
140
 
140
141
 
141
- <span class="summary_desc"><div class='inline'><p>This is the name of the source column for the feature group.</p>
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>This is the name of the source column for the feature group.</p>
142
144
  </div></span>
143
145
 
144
146
  </li>
@@ -166,7 +168,8 @@
166
168
 
167
169
 
168
170
 
169
- <span class="summary_desc"><div class='inline'><p>This is the amount that the feature contributed to the output.</p>
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>This is the amount that the feature contributed to the output.</p>
170
173
  </div></span>
171
174
 
172
175
  </li>
@@ -194,7 +197,8 @@
194
197
 
195
198
 
196
199
 
197
- <span class="summary_desc"><div class='inline'><p>This is the value of the feature.</p>
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>This is the value of the feature.</p>
198
202
  </div></span>
199
203
 
200
204
  </li>
@@ -222,7 +226,8 @@
222
226
 
223
227
 
224
228
 
225
- <span class="summary_desc"><div class='inline'><p>This is the ngram for the feature.</p>
229
+ <span class="summary_desc"><div class='inline'>
230
+ <p>This is the ngram for the feature.</p>
226
231
  </div></span>
227
232
 
228
233
  </li>
@@ -260,7 +265,8 @@
260
265
 
261
266
 
262
267
 
263
- <span class="summary_desc"><div class='inline'><p>A new instance of BagOfWordsFeatureContribution.</p>
268
+ <span class="summary_desc"><div class='inline'>
269
+ <p>A new instance of BagOfWordsFeatureContribution.</p>
264
270
  </div></span>
265
271
 
266
272
  </li>
@@ -283,7 +289,8 @@
283
289
 
284
290
  </h3><div class="docstring">
285
291
  <div class="discussion">
286
- <p>Returns a new instance of BagOfWordsFeatureContribution.</p>
292
+
293
+ <p>Returns a new instance of BagOfWordsFeatureContribution.</p>
287
294
 
288
295
 
289
296
  </div>
@@ -336,7 +343,8 @@
336
343
 
337
344
  </h3><div class="docstring">
338
345
  <div class="discussion">
339
- <p>This is the name of the source column for the feature group.</p>
346
+
347
+ <p>This is the name of the source column for the feature group.</p>
340
348
 
341
349
 
342
350
  </div>
@@ -378,7 +386,8 @@
378
386
 
379
387
  </h3><div class="docstring">
380
388
  <div class="discussion">
381
- <p>This is the amount that the feature contributed to the output.</p>
389
+
390
+ <p>This is the amount that the feature contributed to the output.</p>
382
391
 
383
392
 
384
393
  </div>
@@ -420,7 +429,8 @@
420
429
 
421
430
  </h3><div class="docstring">
422
431
  <div class="discussion">
423
- <p>This is the value of the feature.</p>
432
+
433
+ <p>This is the value of the feature.</p>
424
434
 
425
435
 
426
436
  </div>
@@ -462,7 +472,8 @@
462
472
 
463
473
  </h3><div class="docstring">
464
474
  <div class="discussion">
465
- <p>This is the ngram for the feature.</p>
475
+
476
+ <p>This is the ngram for the feature.</p>
466
477
 
467
478
 
468
479
  </div>
@@ -497,9 +508,9 @@
497
508
  </div>
498
509
 
499
510
  <div id="footer">
500
- Generated on Thu Jul 15 14:34:34 2021 by
511
+ Generated on Mon Jul 26 14:54:00 2021 by
501
512
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
502
- 0.9.26 (ruby-2.7.3).
513
+ 0.9.26 (ruby-2.7.4).
503
514
  </div>
504
515
 
505
516
  </div>
@@ -101,7 +101,8 @@
101
101
 
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
- <p>This describes a bigram ngram.</p>
104
+
105
+ <p>This describes a bigram ngram.</p>
105
106
 
106
107
 
107
108
  </div>
@@ -138,7 +139,8 @@
138
139
 
139
140
 
140
141
 
141
- <span class="summary_desc"><div class='inline'><p>This is the first token in the bigram.</p>
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>This is the first token in the bigram.</p>
142
144
  </div></span>
143
145
 
144
146
  </li>
@@ -166,7 +168,8 @@
166
168
 
167
169
 
168
170
 
169
- <span class="summary_desc"><div class='inline'><p>This is the second token in the bigram.</p>
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>This is the second token in the bigram.</p>
170
173
  </div></span>
171
174
 
172
175
  </li>
@@ -204,7 +207,8 @@
204
207
 
205
208
 
206
209
 
207
- <span class="summary_desc"><div class='inline'><p>A new instance of Bigram.</p>
210
+ <span class="summary_desc"><div class='inline'>
211
+ <p>A new instance of Bigram.</p>
208
212
  </div></span>
209
213
 
210
214
  </li>
@@ -227,7 +231,8 @@
227
231
 
228
232
  </h3><div class="docstring">
229
233
  <div class="discussion">
230
- <p>Returns a new instance of Bigram.</p>
234
+
235
+ <p>Returns a new instance of Bigram.</p>
231
236
 
232
237
 
233
238
  </div>
@@ -276,7 +281,8 @@
276
281
 
277
282
  </h3><div class="docstring">
278
283
  <div class="discussion">
279
- <p>This is the first token in the bigram.</p>
284
+
285
+ <p>This is the first token in the bigram.</p>
280
286
 
281
287
 
282
288
  </div>
@@ -318,7 +324,8 @@
318
324
 
319
325
  </h3><div class="docstring">
320
326
  <div class="discussion">
321
- <p>This is the second token in the bigram.</p>
327
+
328
+ <p>This is the second token in the bigram.</p>
322
329
 
323
330
 
324
331
  </div>
@@ -353,9 +360,9 @@
353
360
  </div>
354
361
 
355
362
  <div id="footer">
356
- Generated on Thu Jul 15 14:34:34 2021 by
363
+ Generated on Mon Jul 26 14:54:00 2021 by
357
364
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
358
- 0.9.26 (ruby-2.7.3).
365
+ 0.9.26 (ruby-2.7.4).
359
366
  </div>
360
367
 
361
368
  </div>
@@ -101,7 +101,8 @@
101
101
 
102
102
  <h2>Overview</h2><div class="docstring">
103
103
  <div class="discussion">
104
- <p><code>predict</code> outputs <code>BinaryClassificationPredictOutput</code> when the model&#39;s task is binary classification.</p>
104
+
105
+ <p><code>predict</code> outputs <code>BinaryClassificationPredictOutput</code> when the model&#39;s task is binary classification.</p>
105
106
 
106
107
 
107
108
  </div>
@@ -138,7 +139,8 @@
138
139
 
139
140
 
140
141
 
141
- <span class="summary_desc"><div class='inline'><p>This is the name of the predicted class.</p>
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>This is the name of the predicted class.</p>
142
144
  </div></span>
143
145
 
144
146
  </li>
@@ -166,7 +168,8 @@
166
168
 
167
169
 
168
170
 
169
- <span class="summary_desc"><div class='inline'><p>If computing feature contributions was enabled in the predict options, this value will explain the model&#39;s output, showing how much each feature contributed to the output.</p>
171
+ <span class="summary_desc"><div class='inline'>
172
+ <p>If computing feature contributions was enabled in the predict options, this value will explain the model&#39;s output, showing how much each feature contributed to the output.</p>
170
173
  </div></span>
171
174
 
172
175
  </li>
@@ -194,7 +197,8 @@
194
197
 
195
198
 
196
199
 
197
- <span class="summary_desc"><div class='inline'><p>This is the probability the model assigned to the predicted class.</p>
200
+ <span class="summary_desc"><div class='inline'>
201
+ <p>This is the probability the model assigned to the predicted class.</p>
198
202
  </div></span>
199
203
 
200
204
  </li>
@@ -232,7 +236,8 @@
232
236
 
233
237
 
234
238
 
235
- <span class="summary_desc"><div class='inline'><p>A new instance of BinaryClassificationPredictOutput.</p>
239
+ <span class="summary_desc"><div class='inline'>
240
+ <p>A new instance of BinaryClassificationPredictOutput.</p>
236
241
  </div></span>
237
242
 
238
243
  </li>
@@ -277,7 +282,8 @@
277
282
 
278
283
  </h3><div class="docstring">
279
284
  <div class="discussion">
280
- <p>Returns a new instance of BinaryClassificationPredictOutput.</p>
285
+
286
+ <p>Returns a new instance of BinaryClassificationPredictOutput.</p>
281
287
 
282
288
 
283
289
  </div>
@@ -328,7 +334,8 @@
328
334
 
329
335
  </h3><div class="docstring">
330
336
  <div class="discussion">
331
- <p>This is the name of the predicted class.</p>
337
+
338
+ <p>This is the name of the predicted class.</p>
332
339
 
333
340
 
334
341
  </div>
@@ -370,7 +377,8 @@
370
377
 
371
378
  </h3><div class="docstring">
372
379
  <div class="discussion">
373
- <p>If computing feature contributions was enabled in the predict options, this value will explain the model&#39;s output, showing how much each feature contributed to the output.</p>
380
+
381
+ <p>If computing feature contributions was enabled in the predict options, this value will explain the model&#39;s output, showing how much each feature contributed to the output.</p>
374
382
 
375
383
 
376
384
  </div>
@@ -412,7 +420,8 @@
412
420
 
413
421
  </h3><div class="docstring">
414
422
  <div class="discussion">
415
- <p>This is the probability the model assigned to the predicted class.</p>
423
+
424
+ <p>This is the probability the model assigned to the predicted class.</p>
416
425
 
417
426
 
418
427
  </div>
@@ -483,9 +492,9 @@
483
492
  </div>
484
493
 
485
494
  <div id="footer">
486
- Generated on Thu Jul 15 14:34:33 2021 by
495
+ Generated on Mon Jul 26 14:54:00 2021 by
487
496
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
488
- 0.9.26 (ruby-2.7.3).
497
+ 0.9.26 (ruby-2.7.4).
489
498
  </div>
490
499
 
491
500
  </div>