tangram 0.1.3 → 0.3.0

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.
Files changed (60) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE +1 -1
  3. data/README.md +23 -19
  4. data/docs/Tangram.html +127 -0
  5. data/docs/Tangram/BagOfWordsFeatureContribution.html +507 -0
  6. data/docs/Tangram/Bigram.html +363 -0
  7. data/docs/Tangram/BinaryClassificationPredictOutput.html +493 -0
  8. data/docs/Tangram/FeatureContributions.html +435 -0
  9. data/docs/Tangram/IdentityFeatureContribution.html +435 -0
  10. data/docs/Tangram/LibTangram.html +160 -0
  11. data/docs/Tangram/LibTangram/TangramStringView.html +193 -0
  12. data/docs/Tangram/LoadModelOptions.html +291 -0
  13. data/docs/Tangram/Model.html +1250 -0
  14. data/docs/Tangram/MulticlassClassificationPredictOutput.html +565 -0
  15. data/docs/Tangram/NormalizedFeatureContribution.html +435 -0
  16. data/docs/Tangram/OneHotEncodedFeatureContribution.html +507 -0
  17. data/docs/Tangram/PredictOptions.html +421 -0
  18. data/docs/Tangram/RegressionPredictOutput.html +421 -0
  19. data/docs/Tangram/Unigram.html +291 -0
  20. data/docs/Tangram/WordEmbeddingFeatureContribution.html +435 -0
  21. data/docs/_index.html +310 -0
  22. data/docs/class_list.html +51 -0
  23. data/docs/css/common.css +1 -0
  24. data/docs/css/full_list.css +58 -0
  25. data/docs/css/style.css +497 -0
  26. data/docs/file.README.html +128 -0
  27. data/docs/file_list.html +56 -0
  28. data/docs/frames.html +17 -0
  29. data/docs/index.html +128 -0
  30. data/docs/js/app.js +314 -0
  31. data/docs/js/full_list.js +216 -0
  32. data/docs/js/jquery.js +4 -0
  33. data/docs/method_list.html +555 -0
  34. data/docs/top-level-namespace.html +110 -0
  35. data/examples/advanced.rb +49 -0
  36. data/examples/basic.rb +29 -0
  37. data/examples/heart_disease.tangram +0 -0
  38. data/lib/tangram.rb +1 -1
  39. data/lib/tangram/libtangram/aarch64-apple-darwin/libtangram.dylib +0 -0
  40. data/lib/tangram/libtangram/x86_64-apple-darwin/libtangram.dylib +0 -0
  41. data/lib/tangram/libtangram/x86_64-pc-windows-msvc/tangram.dll +0 -0
  42. data/lib/tangram/libtangram/x86_64-unknown-linux-gnu/libtangram.so +0 -0
  43. data/lib/tangram/libtangram/x86_64-unknown-linux-musl/libtangram.so +0 -0
  44. data/lib/tangram/tangram.rb +841 -0
  45. data/scripts/build +2 -4
  46. data/scripts/dev +4 -0
  47. data/scripts/docs +1 -0
  48. data/scripts/fmt +0 -0
  49. data/scripts/release +1 -0
  50. data/tangram.gemspec +10 -10
  51. metadata +52 -17
  52. data/examples/monitor/heart-disease.tangram +0 -0
  53. data/examples/monitor/main.rb +0 -52
  54. data/examples/predict/heart-disease.tangram +0 -0
  55. data/examples/predict/main.rb +0 -30
  56. data/lib/tangram/libtangram-0.1.3-linux-x86_64.so +0 -0
  57. data/lib/tangram/libtangram-0.1.3-macos-x86_64.dylib +0 -0
  58. data/lib/tangram/libtangram.rb +0 -24
  59. data/lib/tangram/model.rb +0 -133
  60. data/lib/tangram/tangram-0.1.3-windows-x86_64.dll +0 -0
@@ -0,0 +1,435 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Tangram::FeatureContributions
8
+
9
+ &mdash; Documentation by YARD 0.9.26
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Tangram::FeatureContributions";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (F)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Tangram.html" title="Tangram (module)">Tangram</a></span></span>
41
+ &raquo;
42
+ <span class="title">FeatureContributions</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Tangram::FeatureContributions
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Tangram::FeatureContributions</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/tangram/tangram.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+ <p>This is a description of the feature contributions for the prediction if the task is regression or binary classification, or for a single class if the task is multiclass classification.</p>
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+
112
+ </div>
113
+
114
+
115
+
116
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
117
+ <ul class="summary">
118
+
119
+ <li class="public ">
120
+ <span class="summary_signature">
121
+
122
+ <a href="#baseline-instance_method" title="#baseline (instance method)">#<strong>baseline</strong> &#x21d2; Object </a>
123
+
124
+
125
+
126
+ </span>
127
+
128
+
129
+
130
+
131
+ <span class="note title readonly">readonly</span>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"><div class='inline'><p>This is the value the model would output if all features had baseline values.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#entries-instance_method" title="#entries (instance method)">#<strong>entries</strong> &#x21d2; Object </a>
151
+
152
+
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+ <span class="note title readonly">readonly</span>
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'><p>This list will contain one entry for each of the model&#39;s features.</p>
170
+ </div></span>
171
+
172
+ </li>
173
+
174
+
175
+ <li class="public ">
176
+ <span class="summary_signature">
177
+
178
+ <a href="#output-instance_method" title="#output (instance method)">#<strong>output</strong> &#x21d2; Object </a>
179
+
180
+
181
+
182
+ </span>
183
+
184
+
185
+
186
+
187
+ <span class="note title readonly">readonly</span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <span class="summary_desc"><div class='inline'><p>This is the value the model output.</p>
198
+ </div></span>
199
+
200
+ </li>
201
+
202
+
203
+ </ul>
204
+
205
+
206
+
207
+
208
+
209
+ <h2>
210
+ Instance Method Summary
211
+ <small><a href="#" class="summary_toggle">collapse</a></small>
212
+ </h2>
213
+
214
+ <ul class="summary">
215
+
216
+ <li class="public ">
217
+ <span class="summary_signature">
218
+
219
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(baseline:, output:, entries:) &#x21d2; FeatureContributions </a>
220
+
221
+
222
+
223
+ </span>
224
+
225
+
226
+ <span class="note title constructor">constructor</span>
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+ <span class="summary_desc"><div class='inline'><p>A new instance of FeatureContributions.</p>
236
+ </div></span>
237
+
238
+ </li>
239
+
240
+
241
+ </ul>
242
+
243
+
244
+ <div id="constructor_details" class="method_details_list">
245
+ <h2>Constructor Details</h2>
246
+
247
+ <div class="method_details first">
248
+ <h3 class="signature first" id="initialize-instance_method">
249
+
250
+ #<strong>initialize</strong>(baseline:, output:, entries:) &#x21d2; <tt><span class='object_link'><a href="" title="Tangram::FeatureContributions (class)">FeatureContributions</a></span></tt>
251
+
252
+
253
+
254
+
255
+
256
+ </h3><div class="docstring">
257
+ <div class="discussion">
258
+ <p>Returns a new instance of FeatureContributions.</p>
259
+
260
+
261
+ </div>
262
+ </div>
263
+ <div class="tags">
264
+
265
+
266
+ </div><table class="source_code">
267
+ <tr>
268
+ <td>
269
+ <pre class="lines">
270
+
271
+
272
+ 96
273
+ 97
274
+ 98
275
+ 99
276
+ 100</pre>
277
+ </td>
278
+ <td>
279
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 96</span>
280
+
281
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>baseline:</span><span class='comma'>,</span> <span class='label'>output:</span><span class='comma'>,</span> <span class='label'>entries:</span><span class='rparen'>)</span>
282
+ <span class='ivar'>@baseline</span> <span class='op'>=</span> <span class='id identifier rubyid_baseline'>baseline</span>
283
+ <span class='ivar'>@output</span> <span class='op'>=</span> <span class='id identifier rubyid_output'>output</span>
284
+ <span class='ivar'>@entries</span> <span class='op'>=</span> <span class='id identifier rubyid_entries'>entries</span>
285
+ <span class='kw'>end</span></pre>
286
+ </td>
287
+ </tr>
288
+ </table>
289
+ </div>
290
+
291
+ </div>
292
+
293
+ <div id="instance_attr_details" class="attr_details">
294
+ <h2>Instance Attribute Details</h2>
295
+
296
+
297
+ <span id=""></span>
298
+ <div class="method_details first">
299
+ <h3 class="signature first" id="baseline-instance_method">
300
+
301
+ #<strong>baseline</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
302
+
303
+
304
+
305
+
306
+
307
+ </h3><div class="docstring">
308
+ <div class="discussion">
309
+ <p>This is the value the model would output if all features had baseline values.</p>
310
+
311
+
312
+ </div>
313
+ </div>
314
+ <div class="tags">
315
+
316
+
317
+ </div><table class="source_code">
318
+ <tr>
319
+ <td>
320
+ <pre class="lines">
321
+
322
+
323
+ 91
324
+ 92
325
+ 93</pre>
326
+ </td>
327
+ <td>
328
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 91</span>
329
+
330
+ <span class='kw'>def</span> <span class='id identifier rubyid_baseline'>baseline</span>
331
+ <span class='ivar'>@baseline</span>
332
+ <span class='kw'>end</span></pre>
333
+ </td>
334
+ </tr>
335
+ </table>
336
+ </div>
337
+
338
+
339
+ <span id=""></span>
340
+ <div class="method_details ">
341
+ <h3 class="signature " id="entries-instance_method">
342
+
343
+ #<strong>entries</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
344
+
345
+
346
+
347
+
348
+
349
+ </h3><div class="docstring">
350
+ <div class="discussion">
351
+ <p>This list will contain one entry for each of the model&#39;s features. Note that features are computed from columns, so there will likely be more features than columns.</p>
352
+
353
+
354
+ </div>
355
+ </div>
356
+ <div class="tags">
357
+
358
+
359
+ </div><table class="source_code">
360
+ <tr>
361
+ <td>
362
+ <pre class="lines">
363
+
364
+
365
+ 95
366
+ 96
367
+ 97</pre>
368
+ </td>
369
+ <td>
370
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 95</span>
371
+
372
+ <span class='kw'>def</span> <span class='id identifier rubyid_entries'>entries</span>
373
+ <span class='ivar'>@entries</span>
374
+ <span class='kw'>end</span></pre>
375
+ </td>
376
+ </tr>
377
+ </table>
378
+ </div>
379
+
380
+
381
+ <span id=""></span>
382
+ <div class="method_details ">
383
+ <h3 class="signature " id="output-instance_method">
384
+
385
+ #<strong>output</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
386
+
387
+
388
+
389
+
390
+
391
+ </h3><div class="docstring">
392
+ <div class="discussion">
393
+ <p>This is the value the model output. Any difference from the <code>baseline_value</code> is because of the deviation of the features from their baseline values.</p>
394
+
395
+
396
+ </div>
397
+ </div>
398
+ <div class="tags">
399
+
400
+
401
+ </div><table class="source_code">
402
+ <tr>
403
+ <td>
404
+ <pre class="lines">
405
+
406
+
407
+ 93
408
+ 94
409
+ 95</pre>
410
+ </td>
411
+ <td>
412
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 93</span>
413
+
414
+ <span class='kw'>def</span> <span class='id identifier rubyid_output'>output</span>
415
+ <span class='ivar'>@output</span>
416
+ <span class='kw'>end</span></pre>
417
+ </td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+
422
+ </div>
423
+
424
+
425
+ </div>
426
+
427
+ <div id="footer">
428
+ Generated on Fri Apr 23 15:50:02 2021 by
429
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
430
+ 0.9.26 (ruby-3.0.1).
431
+ </div>
432
+
433
+ </div>
434
+ </body>
435
+ </html>
@@ -0,0 +1,435 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>
7
+ Class: Tangram::IdentityFeatureContribution
8
+
9
+ &mdash; Documentation by YARD 0.9.26
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
+
17
+ <script type="text/javascript">
18
+ pathId = "Tangram::IdentityFeatureContribution";
19
+ relpath = '../';
20
+ </script>
21
+
22
+
23
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
+
25
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
+
27
+
28
+ </head>
29
+ <body>
30
+ <div class="nav_wrap">
31
+ <iframe id="nav" src="../class_list.html?1"></iframe>
32
+ <div id="resizer"></div>
33
+ </div>
34
+
35
+ <div id="main" tabindex="-1">
36
+ <div id="header">
37
+ <div id="menu">
38
+
39
+ <a href="../_index.html">Index (I)</a> &raquo;
40
+ <span class='title'><span class='object_link'><a href="../Tangram.html" title="Tangram (module)">Tangram</a></span></span>
41
+ &raquo;
42
+ <span class="title">IdentityFeatureContribution</span>
43
+
44
+ </div>
45
+
46
+ <div id="search">
47
+
48
+ <a class="full_list_link" id="class_list_link"
49
+ href="../class_list.html">
50
+
51
+ <svg width="24" height="24">
52
+ <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
+ <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
+ <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
+ </svg>
56
+ </a>
57
+
58
+ </div>
59
+ <div class="clear"></div>
60
+ </div>
61
+
62
+ <div id="content"><h1>Class: Tangram::IdentityFeatureContribution
63
+
64
+
65
+
66
+ </h1>
67
+ <div class="box_info">
68
+
69
+ <dl>
70
+ <dt>Inherits:</dt>
71
+ <dd>
72
+ <span class="inheritName">Object</span>
73
+
74
+ <ul class="fullTree">
75
+ <li>Object</li>
76
+
77
+ <li class="next">Tangram::IdentityFeatureContribution</li>
78
+
79
+ </ul>
80
+ <a href="#" class="inheritanceTree">show all</a>
81
+
82
+ </dd>
83
+ </dl>
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+ <dl>
96
+ <dt>Defined in:</dt>
97
+ <dd>lib/tangram/tangram.rb</dd>
98
+ </dl>
99
+
100
+ </div>
101
+
102
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+ <p>This describes the contribution of a feature from an identity feature group.</p>
105
+
106
+
107
+ </div>
108
+ </div>
109
+ <div class="tags">
110
+
111
+
112
+ </div>
113
+
114
+
115
+
116
+ <h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
117
+ <ul class="summary">
118
+
119
+ <li class="public ">
120
+ <span class="summary_signature">
121
+
122
+ <a href="#column_name-instance_method" title="#column_name (instance method)">#<strong>column_name</strong> &#x21d2; Object </a>
123
+
124
+
125
+
126
+ </span>
127
+
128
+
129
+
130
+
131
+ <span class="note title readonly">readonly</span>
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+ <span class="summary_desc"><div class='inline'><p>This is the name of the source column for the feature group.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#feature_contribution_value-instance_method" title="#feature_contribution_value (instance method)">#<strong>feature_contribution_value</strong> &#x21d2; Object </a>
151
+
152
+
153
+
154
+ </span>
155
+
156
+
157
+
158
+
159
+ <span class="note title readonly">readonly</span>
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+ <span class="summary_desc"><div class='inline'><p>This is the amount that the feature contributed to the output.</p>
170
+ </div></span>
171
+
172
+ </li>
173
+
174
+
175
+ <li class="public ">
176
+ <span class="summary_signature">
177
+
178
+ <a href="#feature_value-instance_method" title="#feature_value (instance method)">#<strong>feature_value</strong> &#x21d2; Object </a>
179
+
180
+
181
+
182
+ </span>
183
+
184
+
185
+
186
+
187
+ <span class="note title readonly">readonly</span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <span class="summary_desc"><div class='inline'><p>This is the value of the feature.</p>
198
+ </div></span>
199
+
200
+ </li>
201
+
202
+
203
+ </ul>
204
+
205
+
206
+
207
+
208
+
209
+ <h2>
210
+ Instance Method Summary
211
+ <small><a href="#" class="summary_toggle">collapse</a></small>
212
+ </h2>
213
+
214
+ <ul class="summary">
215
+
216
+ <li class="public ">
217
+ <span class="summary_signature">
218
+
219
+ <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(column_name:, feature_contribution_value:, feature_value:) &#x21d2; IdentityFeatureContribution </a>
220
+
221
+
222
+
223
+ </span>
224
+
225
+
226
+ <span class="note title constructor">constructor</span>
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+ <span class="summary_desc"><div class='inline'><p>A new instance of IdentityFeatureContribution.</p>
236
+ </div></span>
237
+
238
+ </li>
239
+
240
+
241
+ </ul>
242
+
243
+
244
+ <div id="constructor_details" class="method_details_list">
245
+ <h2>Constructor Details</h2>
246
+
247
+ <div class="method_details first">
248
+ <h3 class="signature first" id="initialize-instance_method">
249
+
250
+ #<strong>initialize</strong>(column_name:, feature_contribution_value:, feature_value:) &#x21d2; <tt><span class='object_link'><a href="" title="Tangram::IdentityFeatureContribution (class)">IdentityFeatureContribution</a></span></tt>
251
+
252
+
253
+
254
+
255
+
256
+ </h3><div class="docstring">
257
+ <div class="discussion">
258
+ <p>Returns a new instance of IdentityFeatureContribution.</p>
259
+
260
+
261
+ </div>
262
+ </div>
263
+ <div class="tags">
264
+
265
+
266
+ </div><table class="source_code">
267
+ <tr>
268
+ <td>
269
+ <pre class="lines">
270
+
271
+
272
+ 111
273
+ 112
274
+ 113
275
+ 114
276
+ 115</pre>
277
+ </td>
278
+ <td>
279
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 111</span>
280
+
281
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>column_name:</span><span class='comma'>,</span> <span class='label'>feature_contribution_value:</span><span class='comma'>,</span> <span class='label'>feature_value:</span><span class='rparen'>)</span>
282
+ <span class='ivar'>@column_name</span> <span class='op'>=</span> <span class='id identifier rubyid_column_name'>column_name</span>
283
+ <span class='ivar'>@feature_value</span> <span class='op'>=</span> <span class='id identifier rubyid_feature_value'>feature_value</span>
284
+ <span class='ivar'>@feature_contribution_value</span> <span class='op'>=</span> <span class='id identifier rubyid_feature_contribution_value'>feature_contribution_value</span>
285
+ <span class='kw'>end</span></pre>
286
+ </td>
287
+ </tr>
288
+ </table>
289
+ </div>
290
+
291
+ </div>
292
+
293
+ <div id="instance_attr_details" class="attr_details">
294
+ <h2>Instance Attribute Details</h2>
295
+
296
+
297
+ <span id=""></span>
298
+ <div class="method_details first">
299
+ <h3 class="signature first" id="column_name-instance_method">
300
+
301
+ #<strong>column_name</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
302
+
303
+
304
+
305
+
306
+
307
+ </h3><div class="docstring">
308
+ <div class="discussion">
309
+ <p>This is the name of the source column for the feature group.</p>
310
+
311
+
312
+ </div>
313
+ </div>
314
+ <div class="tags">
315
+
316
+
317
+ </div><table class="source_code">
318
+ <tr>
319
+ <td>
320
+ <pre class="lines">
321
+
322
+
323
+ 106
324
+ 107
325
+ 108</pre>
326
+ </td>
327
+ <td>
328
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 106</span>
329
+
330
+ <span class='kw'>def</span> <span class='id identifier rubyid_column_name'>column_name</span>
331
+ <span class='ivar'>@column_name</span>
332
+ <span class='kw'>end</span></pre>
333
+ </td>
334
+ </tr>
335
+ </table>
336
+ </div>
337
+
338
+
339
+ <span id=""></span>
340
+ <div class="method_details ">
341
+ <h3 class="signature " id="feature_contribution_value-instance_method">
342
+
343
+ #<strong>feature_contribution_value</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
344
+
345
+
346
+
347
+
348
+
349
+ </h3><div class="docstring">
350
+ <div class="discussion">
351
+ <p>This is the amount that the feature contributed to the output.</p>
352
+
353
+
354
+ </div>
355
+ </div>
356
+ <div class="tags">
357
+
358
+
359
+ </div><table class="source_code">
360
+ <tr>
361
+ <td>
362
+ <pre class="lines">
363
+
364
+
365
+ 110
366
+ 111
367
+ 112</pre>
368
+ </td>
369
+ <td>
370
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 110</span>
371
+
372
+ <span class='kw'>def</span> <span class='id identifier rubyid_feature_contribution_value'>feature_contribution_value</span>
373
+ <span class='ivar'>@feature_contribution_value</span>
374
+ <span class='kw'>end</span></pre>
375
+ </td>
376
+ </tr>
377
+ </table>
378
+ </div>
379
+
380
+
381
+ <span id=""></span>
382
+ <div class="method_details ">
383
+ <h3 class="signature " id="feature_value-instance_method">
384
+
385
+ #<strong>feature_value</strong> &#x21d2; <tt>Object</tt> <span class="extras">(readonly)</span>
386
+
387
+
388
+
389
+
390
+
391
+ </h3><div class="docstring">
392
+ <div class="discussion">
393
+ <p>This is the value of the feature.</p>
394
+
395
+
396
+ </div>
397
+ </div>
398
+ <div class="tags">
399
+
400
+
401
+ </div><table class="source_code">
402
+ <tr>
403
+ <td>
404
+ <pre class="lines">
405
+
406
+
407
+ 108
408
+ 109
409
+ 110</pre>
410
+ </td>
411
+ <td>
412
+ <pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 108</span>
413
+
414
+ <span class='kw'>def</span> <span class='id identifier rubyid_feature_value'>feature_value</span>
415
+ <span class='ivar'>@feature_value</span>
416
+ <span class='kw'>end</span></pre>
417
+ </td>
418
+ </tr>
419
+ </table>
420
+ </div>
421
+
422
+ </div>
423
+
424
+
425
+ </div>
426
+
427
+ <div id="footer">
428
+ Generated on Fri Apr 23 15:50:02 2021 by
429
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
430
+ 0.9.26 (ruby-3.0.1).
431
+ </div>
432
+
433
+ </div>
434
+ </body>
435
+ </html>