Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
trained network test for rnn
Browse files Browse the repository at this point in the history
  • Loading branch information
hellonico committed Dec 8, 2018
1 parent 17115f6 commit a4b6217
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions contrib/clojure-package/examples/rnn/test/rnn/core_test.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
;;
;; Licensed to the Apache Software Foundation (ASF) under one or more
;; contributor license agreements. See the NOTICE file distributed with
;; this work for additional information regarding copyright ownership.
;; The ASF licenses this file to You under the Apache License, Version 2.0
;; (the "License"); you may not use this file except in compliance with
;; the License. You may obtain a copy of the License at
;;
;; http://www.apache.org/licenses/LICENSE-2.0
;;
;; Unless required by applicable law or agreed to in writing, software
;; distributed under the License is distributed on an "AS IS" BASIS,
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
;; See the License for the specific language governing permissions and
;; limitations under the License.
;;

(ns rnn.core_test
(:require
[rnn.train-char-rnn] ; this will load the data files
[rnn.test-char-rnn :as rnn]
[clojure.test :refer :all]))

(deftest check-trained-network
(is (=
"The joke that we can start by the challenges of the American people. The American people have been talking about how to compete with the streets of San Antonio who the courage to come together as one "
(rnn/rnn-test "data/obama" 75 200 false))))

0 comments on commit a4b6217

Please sign in to comment.