We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c3fbb2 commit 1f26890Copy full SHA for 1f26890
testapps/on_device_unit_tests/test_app/tests/test_requirements.py
@@ -12,6 +12,25 @@ def test_run_module(self):
12
arr = np.random.random((3, 3))
13
det = np.linalg.det(arr)
14
15
+class ScipyTestCase(PythonTestMixIn, TestCase):
16
+ module_import = 'scipy'
17
+
18
+ def test_run_module(self):
19
+ import numpy as np
20
+ from scipy.cluster.vq import vq, kmeans, whiten
21
+ features = np.array([[ 1.9,2.3],
22
+ [ 1.5,2.5],
23
+ [ 0.8,0.6],
24
+ [ 0.4,1.8],
25
+ [ 0.1,0.1],
26
+ [ 0.2,1.8],
27
+ [ 2.0,0.5],
28
+ [ 0.3,1.5],
29
+ [ 1.0,1.0]])
30
+ whitened = whiten(features)
31
+ book = np.array((whitened[0],whitened[2]))
32
+ print('kmeans', kmeans(whitened,book))
33
34
35
class OpensslTestCase(PythonTestMixIn, TestCase):
36
module_import = '_ssl'
0 commit comments