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

 ##########
 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:
   In this test, it's testing the 3 signatures of the call (1 new one was added 
with the FLOAT64 PR to add dtype)
   
   ```clojure
   predictions-all (infer/classify-image classifier image)
   predictions-with-default-dtype (infer/classify-image classifier image 10)
   predictions (infer/classify-image classifier image 5 dtype/FLOAT32)
   ```
   with
   
   ```
   (is (= 1000 (count predictions-all)))
   (is (= 10 (count predictions-with-default-dtype)))
   (is (= 5 (count predictions)))
   ```
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to