summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-12-07 03:06:38 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-12-07 03:06:38 +0000
commit1226a847e4d067a79843a5acbe59eb3087989552 (patch)
treeadd9cc703d778f79c047264542b508d29dbf2de7
parentdf921799727f4dcc9ae11c579c1428cc45444fa6 (diff)
parentdf930924bd1c444935d58c0a419a94c4142a4e45 (diff)
downloadml-o-preview.tar.gz
-rw-r--r--bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp b/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp
index fd45edaa1..34709e457 100644
--- a/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp
+++ b/bordeaux/learning/stochastic_linear_ranker/jni/jni_stochastic_linear_ranker.cpp
@@ -370,16 +370,13 @@ void Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetWeightClassi
jobject /* thiz */,
jobjectArray key_array_model,
jfloatArray value_array_model,
- jfloat normalizer,
+ jfloat /* normalizer */,
jlong paPtr) {
StochasticLinearRanker<string>* classifier = (StochasticLinearRanker<string>*) paPtr;
SparseWeightVector<string> M_weights;
classifier->SaveWeights(&M_weights);
SparseWeightVector<string>::Wmap w_map = M_weights.GetMap();
- int array_len = w_map.size();
-
- normalizer = M_weights.GetNormalizer();
DecomposeSparseWeightVector(env, &key_array_model, &value_array_model, &M_weights);
}