You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by to...@apache.org on 2017/10/10 11:38:37 UTC
[opennlp-sandbox] branch master updated: OPENNLP-1009 - less epochs
for (s)RNNs tests
This is an automated email from the ASF dual-hosted git repository.
tommaso pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp-sandbox.git
The following commit(s) were added to refs/heads/master by this push:
new c7fcaa3 OPENNLP-1009 - less epochs for (s)RNNs tests
c7fcaa3 is described below
commit c7fcaa35c7f9413f84a2f0d221de0699652020a9
Author: Tommaso Teofili <to...@apache.org>
AuthorDate: Tue Oct 10 13:38:05 2017 +0200
OPENNLP-1009 - less epochs for (s)RNNs tests
---
opennlp-dl/src/test/java/opennlp/tools/dl/RNNTest.java | 2 +-
opennlp-dl/src/test/java/opennlp/tools/dl/StackedRNNTest.java | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/opennlp-dl/src/test/java/opennlp/tools/dl/RNNTest.java b/opennlp-dl/src/test/java/opennlp/tools/dl/RNNTest.java
index 09a4b48..bc3904f 100644
--- a/opennlp-dl/src/test/java/opennlp/tools/dl/RNNTest.java
+++ b/opennlp-dl/src/test/java/opennlp/tools/dl/RNNTest.java
@@ -63,7 +63,7 @@ public class RNNTest {
@Parameterized.Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
- {1e-3f, 100, 300, 500},
+ {1e-3f, 25, 50, 5},
});
}
diff --git a/opennlp-dl/src/test/java/opennlp/tools/dl/StackedRNNTest.java b/opennlp-dl/src/test/java/opennlp/tools/dl/StackedRNNTest.java
index c716f9d..6a61642 100644
--- a/opennlp-dl/src/test/java/opennlp/tools/dl/StackedRNNTest.java
+++ b/opennlp-dl/src/test/java/opennlp/tools/dl/StackedRNNTest.java
@@ -63,13 +63,13 @@ public class StackedRNNTest {
@Parameterized.Parameters
public static Collection<Object[]> data() {
return Arrays.asList(new Object[][] {
- {1e-3f, 100, 300, 500},
+ {1e-2f, 25, 50, 4},
});
}
@Test
public void testStackedCharRNNLearn() throws Exception {
- RNN rnn = new StackedRNN(learningRate, seqLength, hiddenLayerSize, epochs, text, 20, true, true);
+ RNN rnn = new StackedRNN(learningRate, seqLength, hiddenLayerSize, epochs, text, 10, true, true);
evaluate(rnn, true);
rnn.serialize("target/scrnn-weights-");
}
--
To stop receiving notification emails like this one, please contact
['"commits@opennlp.apache.org" <co...@opennlp.apache.org>'].