You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<thclass="colConstructorName" scope="row"><code><spanclass="memberNameLink"><ahref="#%3Cinit%3E(ai.improve.DecisionModel,java.util.Map)">DecisionContext</a></span>​(<ahref="DecisionModel.html" title="class in ai.improve">DecisionModel</a> decisionModel,
156
158
java.util.Map givens)</code></th>
157
159
<tdclass="colLast"> </td>
@@ -250,8 +252,8 @@ <h3>Constructor Detail</h3>
250
252
<ulclass="blockListLast">
251
253
<liclass="blockList">
252
254
<h4>DecisionContext</h4>
253
-
<pre>public DecisionContext​(<ahref="DecisionModel.html" title="class in ai.improve">DecisionModel</a> decisionModel,
254
-
java.util.Map givens)</pre>
255
+
<pre>protected DecisionContext​(<ahref="DecisionModel.html" title="class in ai.improve">DecisionModel</a> decisionModel,
<dd><code>modelName</code> - Length of modelName must be in range [1, 64]; Only alphanumeric
540
546
characters([a-zA-Z0-9]), '-', '.' and '_' are allowed in the modelName
541
-
and the first character must be an alphanumeric one;</dd>
547
+
and the first character must be an alphanumeric one.</dd>
542
548
<dd><code>trackURL</code> - url for tracking decisions. If trackURL is null, no decisions would be
543
549
tracked. If trackURL is not a valid URL, an exception would be thrown.</dd>
544
550
<dd><code>trackApiKey</code> - will be attached to the header fields of all the post request for tracking</dd>
@@ -582,11 +588,22 @@ <h4>put</h4>
582
588
<ulclass="blockList">
583
589
<liclass="blockList">
584
590
<h4>load</h4>
585
-
<preclass="methodSignature">public <ahref="DecisionModel.html" title="class in ai.improve">DecisionModel</a> load​(java.net.URL url)
591
+
<preclass="methodSignature">public <ahref="DecisionModel.html" title="class in ai.improve">DecisionModel</a> load​(java.net.URL modelUrl)
586
592
throws java.io.IOException</pre>
593
+
<divclass="block">Load a model synchronously. Calling this method would block the current thread, so please
<dd><code>modelUrl</code> - A url that can be a local file path, a remote http url that points to a
646
+
model file, or a bundled asset. Urls that ends with '.gz' are considered gzip
647
+
compressed, and will be handled appropriately. Bundled model asset urls
648
+
appears a bit different. Suppose that you have a bundled model file in folder
649
+
"assets/models/my_model.xgb.gz", then modelUrl should be
650
+
new URL("file:///android_asset/models/my_model.xgb").</dd>
651
+
<dd><code>listener</code> - The callback that will run when the model is loaded.</dd>
652
+
</dl>
617
653
</li>
618
654
</ul>
619
655
<aid="getTrackURL()">
@@ -945,8 +981,11 @@ <h4>random</h4>
945
981
<h4>given</h4>
946
982
<preclass="methodSignature">public <ahref="DecisionContext.html" title="class in ai.improve">DecisionContext</a> given​(java.util.Map<java.lang.String,​java.lang.Object> givens)</pre>
Copy file name to clipboardExpand all lines: docs/javadoc/index-all.html
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -105,9 +105,7 @@ <h2 class="title">A</h2>
105
105
<divclass="block">This method should only be called on Android platform.</div>
106
106
</dd>
107
107
<dt><spanclass="memberNameLink"><ahref="ai/improve/DecisionModel.html#addRewardForDecision(java.lang.String,double)">addRewardForDecision(String, double)</a></span> - Method in class ai.improve.<ahref="ai/improve/DecisionModel.html" title="class in ai.improve">DecisionModel</a></dt>
108
-
<dd>
109
-
<divclass="block">Adds the reward to a specific decision</div>
<dt><spanclass="memberNameLink"><ahref="ai/improve/downloader/ModelLoader.html#load(java.lang.String)">load(String)</a></span> - Method in interface ai.improve.downloader.<ahref="ai/improve/downloader/ModelLoader.html" title="interface in ai.improve.downloader">ModelLoader</a></dt>
274
272
<dd> </dd>
275
273
<dt><spanclass="memberNameLink"><ahref="ai/improve/DecisionModel.html#load(java.net.URL)">load(URL)</a></span> - Method in class ai.improve.<ahref="ai/improve/DecisionModel.html" title="class in ai.improve">DecisionModel</a></dt>
276
-
<dd> </dd>
274
+
<dd>
275
+
<divclass="block">Load a model synchronously.</div>
276
+
</dd>
277
277
<dt><spanclass="memberNameLink"><ahref="ai/improve/DecisionModel.html#loadAsync(java.net.URL)">loadAsync(URL)</a></span> - Method in class ai.improve.<ahref="ai/improve/DecisionModel.html" title="class in ai.improve">DecisionModel</a></dt>
278
278
<dd> </dd>
279
279
<dt><spanclass="memberNameLink"><ahref="ai/improve/DecisionModel.html#loadAsync(java.net.URL,ai.improve.DecisionModel.LoadListener)">loadAsync(URL, DecisionModel.LoadListener)</a></span> - Method in class ai.improve.<ahref="ai/improve/DecisionModel.html" title="class in ai.improve">DecisionModel</a></dt>
0 commit comments