{"action":"closed","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/5677","labels_url":"https://api.github.com/repos/scipy/scipy/issues/5677/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/5677/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/5677/events","html_url":"https://github.com/scipy/scipy/issues/5677","id":125100226,"number":5677,"title":"AssertionError:  Arrays are not almost equal to 7 decimals","user":{"login":"zy413","id":16344335,"avatar_url":"https://avatars.githubusercontent.com/u/16344335?v=3","gravatar_id":"","url":"https://api.github.com/users/zy413","html_url":"https://github.com/zy413","followers_url":"https://api.github.com/users/zy413/followers","following_url":"https://api.github.com/users/zy413/following{/other_user}","gists_url":"https://api.github.com/users/zy413/gists{/gist_id}","starred_url":"https://api.github.com/users/zy413/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zy413/subscriptions","organizations_url":"https://api.github.com/users/zy413/orgs","repos_url":"https://api.github.com/users/zy413/repos","events_url":"https://api.github.com/users/zy413/events{/privacy}","received_events_url":"https://api.github.com/users/zy413/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/scipy/scipy/labels/invalid","name":"invalid","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-06T02:59:52Z","updated_at":"2016-01-06T13:33:47Z","closed_at":"2016-01-06T13:33:47Z","body":"When I run a test.py file of package, a fail information displayed in my console.\r\nMy platform is Windows 7 and python(x, y) 2.7.10.0. Please help me to solve this problem.\r\nThanks very much!\r\n\r\n======================================================================\r\nFAIL: test_fun_rs_ubnd_2d_int (test_base.TestBase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_base.py\", line 236, in test_fun_rs_ubnd_2d_int\r\n    np.testing.assert_almost_equal(avg, data_test['avg'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 100.0%)\r\n x: array(0.5540099255923634)\r\n y: array(0.2791593703952988)\r\n-------------------- >> begin captured stdout << ---------------------\r\nThe dimension of the active subspace is 2.\r\n\r\n--------------------- >> end captured stdout << ----------------------\r\n-------------------- >> begin captured logging << --------------------\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 26\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 26\r\nactive_subspaces.utils.simrunners: INFO: Completed 26 function evaluations in 0.00 seconds.\r\nactive_subspaces.gradients: DEBUG: Computing finite diff grads at 26 points in 3 dims.\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       30 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       40 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       50 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       60 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       70 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       80 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       90 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       100 of 104\r\nactive_subspaces.utils.simrunners: INFO: Completed 104 function evaluations in 0.01 seconds.\r\nPAUL: INFO: Computing spectral decomp with 26 samples in 3 dims.\r\nPAUL: INFO: Bootstrapping 200 spectral decomps of size 26 by 3.\r\nPAUL: INFO: Active subspace dimension is 1 out of 3.\r\nPAUL: INFO: Active subspace dimension is 2 out of 3.\r\nactive_subspaces.utils.designs: DEBUG: Gauss-Hermite design with 25 points in 2 dimensions.\r\nactive_subspaces.utils.quadrature: DEBUG: Making a tensor product Gauss-Hermite rule with 25 points in 2 dimensions.\r\nactive_subspaces.domains: DEBUG: Inverting 25 y's with 10 z's per y.\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       30 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       40 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       50 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       60 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       70 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       80 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       90 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       100 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       110 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       120 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       130 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       140 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       150 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       160 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       170 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       180 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       190 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       200 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       210 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       220 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       230 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       240 of 250\r\nactive_subspaces.utils.simrunners: DEBUG:       250 of 250\r\nactive_subspaces.utils.simrunners: INFO: Completed 250 function evaluations in 0.02 seconds.\r\nactive_subspaces.utils.misc: DEBUG: Computing 25 conditional averages with 10 MC samples.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training an RBF surface with degree 2 polynomial in 2 dims with 25 points.\r\nactive_subspaces.integrals: DEBUG: Integrating a function of 3 vars with 2-dim active subspace using a 20-point rule and 10 MC samples.\r\nactive_subspaces.integrals: DEBUG: Getting an integration rule on 3 dims with a 2-dim active subspace with 20-points rule and 10 MC samples.\r\nactive_subspaces.utils.quadrature: DEBUG: Making a tensor product Gauss-Hermite rule with 16 points in 2 dimensions.\r\nactive_subspaces.domains: DEBUG: Inverting 16 y's with 10 z's per y.\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       30 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       40 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       50 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       60 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       70 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       80 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       90 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       100 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       110 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       120 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       130 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       140 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       150 of 160\r\nactive_subspaces.utils.simrunners: DEBUG:       160 of 160\r\nactive_subspaces.utils.simrunners: INFO: Completed 160 function evaluations in 0.01 seconds.\r\nactive_subspaces.utils.misc: DEBUG: Computing 16 conditional averages with 10 MC samples.\r\nactive_subspaces.utils.misc: DEBUG: Computing 16 conditional averages with 10 MC samples.\r\nactive_subspaces.optimizers: DEBUG: Minimizing a 3-variate function exploiting a 2-dim active subspace.\r\nactive_subspaces.optimizers: DEBUG:     Minimum 0.0051.\r\nactive_subspaces.optimizers: DEBUG: Training a MinVariableMap on 3 active variables out of 3 for a 2-dim active subspace.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training a degree 2 polynomial in 3 dims with 26 points.\r\nactive_subspaces.domains: DEBUG: Inverting 1 y's with 1 z's per y.\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: test_fun_rs_ubnd_int (test_base.TestBase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_base.py\", line 180, in test_fun_rs_ubnd_int\r\n    np.testing.assert_almost_equal(avg, data_test['avg'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 100.0%)\r\n x: array(0.5477665425568643)\r\n y: array(0.29773135442295284)\r\n-------------------- >> begin captured stdout << ---------------------\r\nThe dimension of the active subspace is 1.\r\n\r\n--------------------- >> end captured stdout << ----------------------\r\n-------------------- >> begin captured logging << --------------------\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 26\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 26\r\nactive_subspaces.utils.simrunners: INFO: Completed 26 function evaluations in 0.00 seconds.\r\nactive_subspaces.gradients: DEBUG: Computing finite diff grads at 26 points in 3 dims.\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       30 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       40 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       50 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       60 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       70 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       80 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       90 of 104\r\nactive_subspaces.utils.simrunners: DEBUG:       100 of 104\r\nactive_subspaces.utils.simrunners: INFO: Completed 104 function evaluations in 0.01 seconds.\r\nPAUL: INFO: Computing spectral decomp with 26 samples in 3 dims.\r\nPAUL: INFO: Bootstrapping 200 spectral decomps of size 26 by 3.\r\nPAUL: INFO: Active subspace dimension is 1 out of 3.\r\nPAUL: INFO: Active subspace dimension is 1 out of 3.\r\nactive_subspaces.utils.designs: DEBUG: Gauss-Hermite design with 5 points in 1 dimensions.\r\nactive_subspaces.utils.quadrature: DEBUG: Making a tensor product Gauss-Hermite rule with 5 points in 1 dimensions.\r\nactive_subspaces.domains: DEBUG: Inverting 5 y's with 10 z's per y.\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 50\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 50\r\nactive_subspaces.utils.simrunners: DEBUG:       30 of 50\r\nactive_subspaces.utils.simrunners: DEBUG:       40 of 50\r\nactive_subspaces.utils.simrunners: DEBUG:       50 of 50\r\nactive_subspaces.utils.simrunners: INFO: Completed 50 function evaluations in 0.00 seconds.\r\nactive_subspaces.utils.misc: DEBUG: Computing 5 conditional averages with 10 MC samples.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training an RBF surface with degree 2 polynomial in 1 dims with 5 points.\r\nactive_subspaces.integrals: DEBUG: Integrating a function of 3 vars with 1-dim active subspace using a 20-point rule and 10 MC samples.\r\nactive_subspaces.integrals: DEBUG: Getting an integration rule on 3 dims with a 1-dim active subspace with 20-points rule and 10 MC samples.\r\nactive_subspaces.utils.quadrature: DEBUG: Making a tensor product Gauss-Hermite rule with 20 points in 1 dimensions.\r\nactive_subspaces.domains: DEBUG: Inverting 20 y's with 10 z's per y.\r\nactive_subspaces.utils.simrunners: DEBUG:       10 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       20 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       30 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       40 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       50 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       60 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       70 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       80 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       90 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       100 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       110 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       120 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       130 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       140 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       150 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       160 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       170 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       180 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       190 of 200\r\nactive_subspaces.utils.simrunners: DEBUG:       200 of 200\r\nactive_subspaces.utils.simrunners: INFO: Completed 200 function evaluations in 0.01 seconds.\r\nactive_subspaces.utils.misc: DEBUG: Computing 20 conditional averages with 10 MC samples.\r\nactive_subspaces.utils.misc: DEBUG: Computing 20 conditional averages with 10 MC samples.\r\nactive_subspaces.optimizers: DEBUG: Minimizing a 3-variate function exploiting a 1-dim active subspace.\r\nactive_subspaces.optimizers: DEBUG:     Minimum 0.0608.\r\nactive_subspaces.optimizers: DEBUG: Training a MinVariableMap on 2 active variables out of 3 for a 1-dim active subspace.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training a degree 2 polynomial in 2 dims with 26 points.\r\nactive_subspaces.domains: DEBUG: Inverting 1 y's with 1 z's per y.\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: test_rs_bnd_2d_int (test_base.TestBase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_base.py\", line 125, in test_rs_bnd_2d_int\r\n    np.testing.assert_almost_equal(avg, data_test['avg'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 100.0%)\r\n x: array(0.18826727308560556)\r\n y: array(0.1878060876417977)\r\n-------------------- >> begin captured stdout << ---------------------\r\nThe dimension of the active subspace is 2.\r\n\r\n--------------------- >> end captured stdout << ----------------------\r\n-------------------- >> begin captured logging << --------------------\r\nPAUL: INFO: Computing spectral decomp with 20 samples in 3 dims.\r\nPAUL: INFO: Bootstrapping 200 spectral decomps of size 20 by 3.\r\nPAUL: INFO: Active subspace dimension is 1 out of 3.\r\nPAUL: INFO: Active subspace dimension is 2 out of 3.\r\nactive_subspaces.domains: DEBUG: Zonotope domain in 2 dims with 6 vertices.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training an RBF surface with degree 2 polynomial in 2 dims with 20 points.\r\nactive_subspaces.utils.designs: DEBUG: Maximin design with 20 points in 2 dimensions.\r\nactive_subspaces.utils.designs: DEBUG:  Max distance -0.0000.\r\nactive_subspaces.utils.designs: DEBUG:  Max distance -0.1909.\r\nactive_subspaces.optimizers: DEBUG: Minimizing a 3-variate function exploiting a 2-dim active subspace.\r\nactive_subspaces.optimizers: DEBUG: Zonotope minimization in 2 vars.\r\nactive_subspaces.optimizers: DEBUG:     Minimum 0.0023.\r\nactive_subspaces.optimizers: DEBUG:     Minimum 0.0023.\r\nactive_subspaces.optimizers: DEBUG: Training a MinVariableMap on 3 active variables out of 3 for a 2-dim active subspace.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training a degree 2 polynomial in 3 dims with 20 points.\r\nactive_subspaces.domains: DEBUG: Inverting 1 y's with 1 z's per y.\r\nactive_subspaces.utils.qp_solver: DEBUG: QP solver GUROBI is not available. Using scipy optimization package.\r\nactive_subspaces.utils.qp_solver: DEBUG: Quadratic program with 1 variables and 6 inequality constraints using SCIPY\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: test_rs_bnd_int (test_base.TestBase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_base.py\", line 69, in test_rs_bnd_int\r\n    np.testing.assert_almost_equal(avg, data_test['avg'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 100.0%)\r\n x: array(0.1871479478276046)\r\n y: array(0.18722002590714798)\r\n-------------------- >> begin captured stdout << ---------------------\r\nThe dimension of the active subspace is 1.\r\n\r\n--------------------- >> end captured stdout << ----------------------\r\n-------------------- >> begin captured logging << --------------------\r\nPAUL: INFO: Computing spectral decomp with 20 samples in 3 dims.\r\nPAUL: INFO: Bootstrapping 200 spectral decomps of size 20 by 3.\r\nPAUL: INFO: Active subspace dimension is 1 out of 3.\r\nactive_subspaces.domains: DEBUG: Interval domain.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training an RBF surface with degree 2 polynomial in 1 dims with 20 points.\r\nactive_subspaces.optimizers: DEBUG: Minimizing a 3-variate function exploiting a 1-dim active subspace.\r\nactive_subspaces.optimizers: DEBUG: Interval minimization.\r\nactive_subspaces.optimizers: DEBUG: Training a MinVariableMap on 2 active variables out of 3 for a 1-dim active subspace.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training a degree 2 polynomial in 2 dims with 20 points.\r\nactive_subspaces.domains: DEBUG: Inverting 1 y's with 1 z's per y.\r\nactive_subspaces.utils.qp_solver: DEBUG: QP solver GUROBI is not available. Using scipy optimization package.\r\nactive_subspaces.utils.qp_solver: DEBUG: Quadratic program with 2 variables and 6 inequality constraints using SCIPY\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: test_rs_ubnd_int (test_base.TestBase)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_base.py\", line 41, in test_rs_ubnd_int\r\n    np.testing.assert_almost_equal(avg, data_test['avg'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 100.0%)\r\n x: array(0.5279034805417532)\r\n y: array(0.2828466903236997)\r\n-------------------- >> begin captured stdout << ---------------------\r\nThe dimension of the active subspace is 1.\r\n\r\n--------------------- >> end captured stdout << ----------------------\r\n-------------------- >> begin captured logging << --------------------\r\nPAUL: INFO: Computing spectral decomp with 20 samples in 3 dims.\r\nPAUL: INFO: Bootstrapping 200 spectral decomps of size 20 by 3.\r\nPAUL: INFO: Active subspace dimension is 1 out of 3.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training an RBF surface with degree 2 polynomial in 1 dims with 20 points.\r\nactive_subspaces.utils.quadrature: DEBUG: Making a tensor product Gauss-Hermite rule with 20 points in 1 dimensions.\r\nactive_subspaces.optimizers: DEBUG: Minimizing a 3-variate function exploiting a 1-dim active subspace.\r\nactive_subspaces.optimizers: DEBUG:     Minimum 0.0355.\r\nactive_subspaces.optimizers: DEBUG:     Minimum 0.0355.\r\nactive_subspaces.optimizers: DEBUG: Training a MinVariableMap on 2 active variables out of 3 for a 1-dim active subspace.\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training a degree 2 polynomial in 2 dims with 20 points.\r\nactive_subspaces.domains: DEBUG: Inverting 1 y's with 1 z's per y.\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: test_rbf_as (test_response_surfaces.TestResponseSurfaces)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_response_surfaces.py\", line 472, in test_rbf_as\r\n    np.testing.assert_almost_equal(f, data['f'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 2.0%)\r\n x: array([[ 0.9168915],\r\n       [-4.4789474],\r\n       [-3.4235652],...\r\n y: array([[ 0.9168915],\r\n       [-4.4789475],\r\n       [-3.4235653],...\r\n-------------------- >> begin captured logging << --------------------\r\nactive_subspaces.utils.response_surfaces: DEBUG: Training an RBF surface with degree 1 polynomial in 2 dims with 200 points.\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n======================================================================\r\nFAIL: test_bootstrap_ranges_1 (test_subspaces.TestSubspaces)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_subspaces.py\", line 51, in test_bootstrap_ranges_1\r\n    np.testing.assert_almost_equal(sub_br, data_br['sub_br'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 50.0%)\r\n x: array([[  2.5362583e-16,   3.0921811e-01,   7.7332470e-01],\r\n       [  2.6808495e-16,   4.9837247e-01,   9.9832007e-01],\r\n       [  3.4278527e-16,   5.7179716e-01,   9.5960527e-01],\r\n       [  1.2354349e-16,   2.2592837e-01,   4.6512702e-01]])\r\n y: array([[  2.3263411e-16,   3.0921811e-01,   7.7332470e-01],\r\n       [  3.6463427e-16,   4.9751561e-01,   9.9648625e-01],\r\n       [  3.0707258e-16,   5.6913690e-01,   9.5674387e-01],\r\n       [  7.7579192e-17,   2.5822299e-01,   5.8911919e-01]])\r\n\r\n======================================================================\r\nFAIL: test_subspaces_1 (test_subspaces.TestSubspaces)\r\n----------------------------------------------------------------------\r\nTraceback (most recent call last):\r\n  File \"D:\\active_subspaces-master\\tests\\test_subspaces.py\", line 79, in test_subspaces_1\r\n    np.testing.assert_almost_equal(sub.sub_br, data_br['sub_br'])\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 474, in assert_almost_equal\r\n    return assert_array_almost_equal(actual, desired, decimal, err_msg)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 842, in assert_array_almost_equal\r\n    precision=decimal)\r\n  File \"C:\\Python27\\lib\\site-packages\\numpy\\testing\\utils.py\", line 665, in assert_array_compare\r\n    raise AssertionError(msg)\r\nAssertionError: \r\nArrays are not almost equal to 7 decimals\r\n\r\n(mismatch 50.0%)\r\n x: array([[  2.9829174e-16,   3.0921811e-01,   7.7332470e-01],\r\n       [  3.1045456e-16,   4.9837247e-01,   9.9832007e-01],\r\n       [  3.3433757e-16,   5.7179716e-01,   9.5960527e-01],\r\n       [  1.1295701e-16,   2.2592837e-01,   4.6512702e-01]])\r\n y: array([[  2.3263411e-16,   3.0921811e-01,   7.7332470e-01],\r\n       [  3.6463427e-16,   4.9751561e-01,   9.9648625e-01],\r\n       [  3.0707258e-16,   5.6913690e-01,   9.5674387e-01],\r\n       [  7.7579192e-17,   2.5822299e-01,   5.8911919e-01]])\r\n-------------------- >> begin captured logging << --------------------\r\nPAUL: INFO: Computing spectral decomp with 2 samples in 5 dims.\r\nPAUL: INFO: Bootstrapping 100 spectral decomps of size 2 by 5.\r\nPAUL: INFO: Active subspace dimension is 2 out of 5.\r\n--------------------- >> end captured logging << ---------------------\r\n\r\n----------------------------------------------------------------------\r\nRan 154 tests in 23.333s\r\n\r\nFAILED (SKIP=3, errors=2, failures=26)\r\nTo exit: use 'exit', 'quit', or Ctrl-D.\r\nAn exception has occurred, use %tb to see the full traceback.\r\n"}}