You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/01/12 17:18:31 UTC

[GitHub] kedarbellare commented on a change in pull request #13864: [Clojure] package infer tweaks

kedarbellare commented on a change in pull request #13864: [Clojure] package infer tweaks
URL: https://github.com/apache/incubator-mxnet/pull/13864#discussion_r247319313
 
 

 ##########
 File path: contrib/clojure-package/examples/infer/imageclassifier/test/infer/imageclassifier_example_test.clj
 ##########
 @@ -46,24 +46,16 @@
         predictions (classify-single-image classifier image-file)]
     (is (some? predictions))
     (is (= 5 (count predictions)))
-    (is (every? #(= 2 (count %)) predictions))
-    (is (every? #(string? (first %)) predictions))
-    (is (every? #(float? (second %)) predictions))
-    (is (every? #(< 0 (second %) 1) predictions))
-    (is (= ["n02123159 tiger cat"
-            "n02124075 Egyptian cat"
-            "n02123045 tabby, tabby cat"
-            "n02127052 lynx, catamount"
-            "n02128757 snow leopard, ounce, Panthera uncia"]
-           (map first predictions)))))
+    (is (= 5 (count predictions)))
 
 Review comment:
   duplicate?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services