tangram 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -27
- data/docs/Tangram.html +3 -3
- data/docs/Tangram/BagOfWordsCosineSimilarityFeatureContribution.html +507 -0
- data/docs/Tangram/BagOfWordsFeatureContribution.html +2 -2
- data/docs/Tangram/Bigram.html +2 -2
- data/docs/Tangram/BinaryClassificationPredictOutput.html +2 -2
- data/docs/Tangram/FeatureContributions.html +2 -2
- data/docs/Tangram/IdentityFeatureContribution.html +2 -2
- data/docs/Tangram/LibTangram.html +3 -2
- data/docs/Tangram/LibTangram/TangramStringView.html +6 -6
- data/docs/Tangram/LoadModelOptions.html +2 -2
- data/docs/Tangram/Model.html +92 -92
- data/docs/Tangram/MulticlassClassificationPredictOutput.html +2 -2
- data/docs/Tangram/NormalizedFeatureContribution.html +2 -2
- data/docs/Tangram/OneHotEncodedFeatureContribution.html +2 -2
- data/docs/Tangram/PredictOptions.html +2 -2
- data/docs/Tangram/RegressionPredictOutput.html +2 -2
- data/docs/Tangram/Unigram.html +2 -2
- data/docs/Tangram/WordEmbeddingFeatureContribution.html +20 -20
- data/docs/_index.html +9 -2
- data/docs/class_list.html +1 -1
- data/docs/file.README.html +5 -27
- data/docs/index.html +5 -27
- data/docs/method_list.html +69 -29
- data/docs/top-level-namespace.html +2 -2
- data/examples/advanced/Gemfile +2 -0
- data/examples/advanced/Gemfile.lock +15 -0
- data/examples/advanced/README.md +14 -0
- data/examples/{heart_disease.tangram → advanced/heart_disease.tangram} +0 -0
- data/examples/{advanced.rb → advanced/main.rb} +0 -0
- data/examples/basic/Gemfile +2 -0
- data/examples/basic/Gemfile.lock +15 -0
- data/examples/basic/README.md +10 -0
- data/examples/basic/heart_disease.tangram +0 -0
- data/examples/{basic.rb → basic/main.rb} +0 -0
- data/lib/tangram/libtangram/aarch64-apple-darwin/libtangram.dylib +0 -0
- data/lib/tangram/libtangram/aarch64-unknown-linux-gnu/libtangram.so +0 -0
- data/lib/tangram/libtangram/aarch64-unknown-linux-musl/libtangram.so +0 -0
- data/lib/tangram/libtangram/x86_64-apple-darwin/libtangram.dylib +0 -0
- data/lib/tangram/libtangram/x86_64-pc-windows-msvc/tangram.dll +0 -0
- data/lib/tangram/libtangram/x86_64-unknown-linux-gnu/libtangram.so +0 -0
- data/lib/tangram/libtangram/x86_64-unknown-linux-musl/libtangram.so +0 -0
- data/tangram.gemspec +1 -1
- metadata +12 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67aee1607ea98442ef594465a0b462997fa5d64eb9aa121a534776ad1ed81af9
|
4
|
+
data.tar.gz: 05e82018a2dc79b99411389b5b61c00cc570995b8852c463138b3242a4adf747
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46d36873b116a8c4d5b39165f6eae6090f30d50fe617c39e69ee6eb469585e66169b1723218562c125a4b390f9f0434fb580b5e051996d0ebb2e770419794556
|
7
|
+
data.tar.gz: 2686d35491d8dafb53eded4107e512c62bbb44681567ae8aaa8bea0d22b964ff3efc5926207459084eb5d2d150d7fc0ee6d24a80533894e1014322c16da4b323
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
- [Watch the Video](https://www.tangram.xyz)
|
4
4
|
- [Read the Docs](https://www.tangram.xyz/docs)
|
5
5
|
|
6
|
-
The Tangram Ruby
|
6
|
+
The Tangram Ruby library makes it easy to make predictions with your Tangram machine learning model from Ruby.
|
7
7
|
|
8
8
|
## Usage
|
9
9
|
|
@@ -29,32 +29,8 @@ For more information, [read the docs](https://www.tangram.xyz/docs).
|
|
29
29
|
|
30
30
|
## Platform Support
|
31
31
|
|
32
|
-
Tangram for Ruby is currently supported on Linux, macOS, and Windows with 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/tangramxyz/tangram/issues/new) or send us an email at [help@tangram.xyz](mailto:help@tangram.xyz).
|
33
33
|
|
34
34
|
## Examples
|
35
35
|
|
36
|
-
The source for this
|
37
|
-
|
38
|
-
### Basic
|
39
|
-
|
40
|
-
The basic example demonstrates loading a model from a `.tangram` file and making a prediction.
|
41
|
-
|
42
|
-
To run the example:
|
43
|
-
|
44
|
-
```
|
45
|
-
$ ruby examples/basic.rb
|
46
|
-
```
|
47
|
-
|
48
|
-
### Advanced
|
49
|
-
|
50
|
-
The advanced 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 `examples/heart_disease.tangram` to it.
|
51
|
-
|
52
|
-
To run the example:
|
53
|
-
|
54
|
-
```
|
55
|
-
$ TANGRAM_URL=http://localhost:8080 ruby examples/advanced.rb
|
56
|
-
```
|
57
|
-
|
58
|
-
Now if you refresh the production stats or production metrics tabs for the model you uploaded, you should see predictions and true values.
|
59
|
-
|
60
|
-
For more information, [read the docs](https://www.tangram.xyz/docs).
|
36
|
+
The source for this package contains a number of examples in the `examples` directory. Each example has a `README.md` explaining how to run it.
|
data/docs/Tangram.html
CHANGED
@@ -101,7 +101,7 @@
|
|
101
101
|
|
102
102
|
|
103
103
|
|
104
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Tangram/BagOfWordsFeatureContribution.html" title="Tangram::BagOfWordsFeatureContribution (class)">BagOfWordsFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/Bigram.html" title="Tangram::Bigram (class)">Bigram</a></span>, <span class='object_link'><a href="Tangram/BinaryClassificationPredictOutput.html" title="Tangram::BinaryClassificationPredictOutput (class)">BinaryClassificationPredictOutput</a></span>, <span class='object_link'><a href="Tangram/FeatureContributions.html" title="Tangram::FeatureContributions (class)">FeatureContributions</a></span>, <span class='object_link'><a href="Tangram/IdentityFeatureContribution.html" title="Tangram::IdentityFeatureContribution (class)">IdentityFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/LoadModelOptions.html" title="Tangram::LoadModelOptions (class)">LoadModelOptions</a></span>, <span class='object_link'><a href="Tangram/Model.html" title="Tangram::Model (class)">Model</a></span>, <span class='object_link'><a href="Tangram/MulticlassClassificationPredictOutput.html" title="Tangram::MulticlassClassificationPredictOutput (class)">MulticlassClassificationPredictOutput</a></span>, <span class='object_link'><a href="Tangram/NormalizedFeatureContribution.html" title="Tangram::NormalizedFeatureContribution (class)">NormalizedFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/OneHotEncodedFeatureContribution.html" title="Tangram::OneHotEncodedFeatureContribution (class)">OneHotEncodedFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/PredictOptions.html" title="Tangram::PredictOptions (class)">PredictOptions</a></span>, <span class='object_link'><a href="Tangram/RegressionPredictOutput.html" title="Tangram::RegressionPredictOutput (class)">RegressionPredictOutput</a></span>, <span class='object_link'><a href="Tangram/Unigram.html" title="Tangram::Unigram (class)">Unigram</a></span>, <span class='object_link'><a href="Tangram/WordEmbeddingFeatureContribution.html" title="Tangram::WordEmbeddingFeatureContribution (class)">WordEmbeddingFeatureContribution</a></span>
|
104
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Tangram/BagOfWordsCosineSimilarityFeatureContribution.html" title="Tangram::BagOfWordsCosineSimilarityFeatureContribution (class)">BagOfWordsCosineSimilarityFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/BagOfWordsFeatureContribution.html" title="Tangram::BagOfWordsFeatureContribution (class)">BagOfWordsFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/Bigram.html" title="Tangram::Bigram (class)">Bigram</a></span>, <span class='object_link'><a href="Tangram/BinaryClassificationPredictOutput.html" title="Tangram::BinaryClassificationPredictOutput (class)">BinaryClassificationPredictOutput</a></span>, <span class='object_link'><a href="Tangram/FeatureContributions.html" title="Tangram::FeatureContributions (class)">FeatureContributions</a></span>, <span class='object_link'><a href="Tangram/IdentityFeatureContribution.html" title="Tangram::IdentityFeatureContribution (class)">IdentityFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/LoadModelOptions.html" title="Tangram::LoadModelOptions (class)">LoadModelOptions</a></span>, <span class='object_link'><a href="Tangram/Model.html" title="Tangram::Model (class)">Model</a></span>, <span class='object_link'><a href="Tangram/MulticlassClassificationPredictOutput.html" title="Tangram::MulticlassClassificationPredictOutput (class)">MulticlassClassificationPredictOutput</a></span>, <span class='object_link'><a href="Tangram/NormalizedFeatureContribution.html" title="Tangram::NormalizedFeatureContribution (class)">NormalizedFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/OneHotEncodedFeatureContribution.html" title="Tangram::OneHotEncodedFeatureContribution (class)">OneHotEncodedFeatureContribution</a></span>, <span class='object_link'><a href="Tangram/PredictOptions.html" title="Tangram::PredictOptions (class)">PredictOptions</a></span>, <span class='object_link'><a href="Tangram/RegressionPredictOutput.html" title="Tangram::RegressionPredictOutput (class)">RegressionPredictOutput</a></span>, <span class='object_link'><a href="Tangram/Unigram.html" title="Tangram::Unigram (class)">Unigram</a></span>, <span class='object_link'><a href="Tangram/WordEmbeddingFeatureContribution.html" title="Tangram::WordEmbeddingFeatureContribution (class)">WordEmbeddingFeatureContribution</a></span>
|
105
105
|
|
106
106
|
|
107
107
|
</p>
|
@@ -117,9 +117,9 @@
|
|
117
117
|
</div>
|
118
118
|
|
119
119
|
<div id="footer">
|
120
|
-
Generated on
|
120
|
+
Generated on Thu Jul 1 17:11:32 2021 by
|
121
121
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
122
|
-
0.9.26 (ruby-2.
|
122
|
+
0.9.26 (ruby-2.7.3).
|
123
123
|
</div>
|
124
124
|
|
125
125
|
</div>
|
@@ -0,0 +1,507 @@
|
|
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::BagOfWordsCosineSimilarityFeatureContribution
|
8
|
+
|
9
|
+
— 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::BagOfWordsCosineSimilarityFeatureContribution";
|
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 (B)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../Tangram.html" title="Tangram (module)">Tangram</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">BagOfWordsCosineSimilarityFeatureContribution</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::BagOfWordsCosineSimilarityFeatureContribution
|
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::BagOfWordsCosineSimilarityFeatureContribution</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 a bag of words cosine similarity 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_a-instance_method" title="#column_name_a (instance method)">#<strong>column_name_a</strong> ⇒ 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 a 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="#column_name_b-instance_method" title="#column_name_b (instance method)">#<strong>column_name_b</strong> ⇒ 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 name of the source column b for the feature group.</p>
|
170
|
+
</div></span>
|
171
|
+
|
172
|
+
</li>
|
173
|
+
|
174
|
+
|
175
|
+
<li class="public ">
|
176
|
+
<span class="summary_signature">
|
177
|
+
|
178
|
+
<a href="#feature_contribution_value-instance_method" title="#feature_contribution_value (instance method)">#<strong>feature_contribution_value</strong> ⇒ 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 amount that the feature contributed to the output.</p>
|
198
|
+
</div></span>
|
199
|
+
|
200
|
+
</li>
|
201
|
+
|
202
|
+
|
203
|
+
<li class="public ">
|
204
|
+
<span class="summary_signature">
|
205
|
+
|
206
|
+
<a href="#feature_value-instance_method" title="#feature_value (instance method)">#<strong>feature_value</strong> ⇒ Object </a>
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
</span>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
<span class="note title readonly">readonly</span>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
<span class="summary_desc"><div class='inline'><p>This is the value of the feature.</p>
|
226
|
+
</div></span>
|
227
|
+
|
228
|
+
</li>
|
229
|
+
|
230
|
+
|
231
|
+
</ul>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
<h2>
|
238
|
+
Instance Method Summary
|
239
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
240
|
+
</h2>
|
241
|
+
|
242
|
+
<ul class="summary">
|
243
|
+
|
244
|
+
<li class="public ">
|
245
|
+
<span class="summary_signature">
|
246
|
+
|
247
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(column_name_a:, column_name_b:, feature_contribution_value:, feature_value:) ⇒ BagOfWordsCosineSimilarityFeatureContribution </a>
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
</span>
|
252
|
+
|
253
|
+
|
254
|
+
<span class="note title constructor">constructor</span>
|
255
|
+
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
<span class="summary_desc"><div class='inline'><p>A new instance of BagOfWordsCosineSimilarityFeatureContribution.</p>
|
264
|
+
</div></span>
|
265
|
+
|
266
|
+
</li>
|
267
|
+
|
268
|
+
|
269
|
+
</ul>
|
270
|
+
|
271
|
+
|
272
|
+
<div id="constructor_details" class="method_details_list">
|
273
|
+
<h2>Constructor Details</h2>
|
274
|
+
|
275
|
+
<div class="method_details first">
|
276
|
+
<h3 class="signature first" id="initialize-instance_method">
|
277
|
+
|
278
|
+
#<strong>initialize</strong>(column_name_a:, column_name_b:, feature_contribution_value:, feature_value:) ⇒ <tt><span class='object_link'><a href="" title="Tangram::BagOfWordsCosineSimilarityFeatureContribution (class)">BagOfWordsCosineSimilarityFeatureContribution</a></span></tt>
|
279
|
+
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
</h3><div class="docstring">
|
285
|
+
<div class="discussion">
|
286
|
+
<p>Returns a new instance of BagOfWordsCosineSimilarityFeatureContribution.</p>
|
287
|
+
|
288
|
+
|
289
|
+
</div>
|
290
|
+
</div>
|
291
|
+
<div class="tags">
|
292
|
+
|
293
|
+
|
294
|
+
</div><table class="source_code">
|
295
|
+
<tr>
|
296
|
+
<td>
|
297
|
+
<pre class="lines">
|
298
|
+
|
299
|
+
|
300
|
+
200
|
301
|
+
201
|
302
|
+
202
|
303
|
+
203
|
304
|
+
204
|
305
|
+
205</pre>
|
306
|
+
</td>
|
307
|
+
<td>
|
308
|
+
<pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 200</span>
|
309
|
+
|
310
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='label'>column_name_a:</span><span class='comma'>,</span> <span class='label'>column_name_b:</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>
|
311
|
+
<span class='ivar'>@column_name_a</span> <span class='op'>=</span> <span class='id identifier rubyid_column_name_a'>column_name_a</span>
|
312
|
+
<span class='ivar'>@column_name_b</span> <span class='op'>=</span> <span class='id identifier rubyid_column_name_b'>column_name_b</span>
|
313
|
+
<span class='ivar'>@feature_contribution_value</span> <span class='op'>=</span> <span class='id identifier rubyid_feature_contribution_value'>feature_contribution_value</span>
|
314
|
+
<span class='ivar'>@feature_value</span> <span class='op'>=</span> <span class='id identifier rubyid_feature_value'>feature_value</span>
|
315
|
+
<span class='kw'>end</span></pre>
|
316
|
+
</td>
|
317
|
+
</tr>
|
318
|
+
</table>
|
319
|
+
</div>
|
320
|
+
|
321
|
+
</div>
|
322
|
+
|
323
|
+
<div id="instance_attr_details" class="attr_details">
|
324
|
+
<h2>Instance Attribute Details</h2>
|
325
|
+
|
326
|
+
|
327
|
+
<span id=""></span>
|
328
|
+
<div class="method_details first">
|
329
|
+
<h3 class="signature first" id="column_name_a-instance_method">
|
330
|
+
|
331
|
+
#<strong>column_name_a</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
</h3><div class="docstring">
|
338
|
+
<div class="discussion">
|
339
|
+
<p>This is the name of the source column a for the feature group.</p>
|
340
|
+
|
341
|
+
|
342
|
+
</div>
|
343
|
+
</div>
|
344
|
+
<div class="tags">
|
345
|
+
|
346
|
+
|
347
|
+
</div><table class="source_code">
|
348
|
+
<tr>
|
349
|
+
<td>
|
350
|
+
<pre class="lines">
|
351
|
+
|
352
|
+
|
353
|
+
193
|
354
|
+
194
|
355
|
+
195</pre>
|
356
|
+
</td>
|
357
|
+
<td>
|
358
|
+
<pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 193</span>
|
359
|
+
|
360
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_column_name_a'>column_name_a</span>
|
361
|
+
<span class='ivar'>@column_name_a</span>
|
362
|
+
<span class='kw'>end</span></pre>
|
363
|
+
</td>
|
364
|
+
</tr>
|
365
|
+
</table>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
|
369
|
+
<span id=""></span>
|
370
|
+
<div class="method_details ">
|
371
|
+
<h3 class="signature " id="column_name_b-instance_method">
|
372
|
+
|
373
|
+
#<strong>column_name_b</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
|
378
|
+
|
379
|
+
</h3><div class="docstring">
|
380
|
+
<div class="discussion">
|
381
|
+
<p>This is the name of the source column b for the feature group.</p>
|
382
|
+
|
383
|
+
|
384
|
+
</div>
|
385
|
+
</div>
|
386
|
+
<div class="tags">
|
387
|
+
|
388
|
+
|
389
|
+
</div><table class="source_code">
|
390
|
+
<tr>
|
391
|
+
<td>
|
392
|
+
<pre class="lines">
|
393
|
+
|
394
|
+
|
395
|
+
195
|
396
|
+
196
|
397
|
+
197</pre>
|
398
|
+
</td>
|
399
|
+
<td>
|
400
|
+
<pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 195</span>
|
401
|
+
|
402
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_column_name_b'>column_name_b</span>
|
403
|
+
<span class='ivar'>@column_name_b</span>
|
404
|
+
<span class='kw'>end</span></pre>
|
405
|
+
</td>
|
406
|
+
</tr>
|
407
|
+
</table>
|
408
|
+
</div>
|
409
|
+
|
410
|
+
|
411
|
+
<span id=""></span>
|
412
|
+
<div class="method_details ">
|
413
|
+
<h3 class="signature " id="feature_contribution_value-instance_method">
|
414
|
+
|
415
|
+
#<strong>feature_contribution_value</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
416
|
+
|
417
|
+
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
</h3><div class="docstring">
|
422
|
+
<div class="discussion">
|
423
|
+
<p>This is the amount that the feature contributed to the output.</p>
|
424
|
+
|
425
|
+
|
426
|
+
</div>
|
427
|
+
</div>
|
428
|
+
<div class="tags">
|
429
|
+
|
430
|
+
|
431
|
+
</div><table class="source_code">
|
432
|
+
<tr>
|
433
|
+
<td>
|
434
|
+
<pre class="lines">
|
435
|
+
|
436
|
+
|
437
|
+
199
|
438
|
+
200
|
439
|
+
201</pre>
|
440
|
+
</td>
|
441
|
+
<td>
|
442
|
+
<pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 199</span>
|
443
|
+
|
444
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_feature_contribution_value'>feature_contribution_value</span>
|
445
|
+
<span class='ivar'>@feature_contribution_value</span>
|
446
|
+
<span class='kw'>end</span></pre>
|
447
|
+
</td>
|
448
|
+
</tr>
|
449
|
+
</table>
|
450
|
+
</div>
|
451
|
+
|
452
|
+
|
453
|
+
<span id=""></span>
|
454
|
+
<div class="method_details ">
|
455
|
+
<h3 class="signature " id="feature_value-instance_method">
|
456
|
+
|
457
|
+
#<strong>feature_value</strong> ⇒ <tt>Object</tt> <span class="extras">(readonly)</span>
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
</h3><div class="docstring">
|
464
|
+
<div class="discussion">
|
465
|
+
<p>This is the value of the feature.</p>
|
466
|
+
|
467
|
+
|
468
|
+
</div>
|
469
|
+
</div>
|
470
|
+
<div class="tags">
|
471
|
+
|
472
|
+
|
473
|
+
</div><table class="source_code">
|
474
|
+
<tr>
|
475
|
+
<td>
|
476
|
+
<pre class="lines">
|
477
|
+
|
478
|
+
|
479
|
+
197
|
480
|
+
198
|
481
|
+
199</pre>
|
482
|
+
</td>
|
483
|
+
<td>
|
484
|
+
<pre class="code"><span class="info file"># File 'lib/tangram/tangram.rb', line 197</span>
|
485
|
+
|
486
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_feature_value'>feature_value</span>
|
487
|
+
<span class='ivar'>@feature_value</span>
|
488
|
+
<span class='kw'>end</span></pre>
|
489
|
+
</td>
|
490
|
+
</tr>
|
491
|
+
</table>
|
492
|
+
</div>
|
493
|
+
|
494
|
+
</div>
|
495
|
+
|
496
|
+
|
497
|
+
</div>
|
498
|
+
|
499
|
+
<div id="footer">
|
500
|
+
Generated on Thu Jul 1 17:11:32 2021 by
|
501
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
502
|
+
0.9.26 (ruby-2.7.3).
|
503
|
+
</div>
|
504
|
+
|
505
|
+
</div>
|
506
|
+
</body>
|
507
|
+
</html>
|