本文整理汇总了Python中statsmodels.tools.tools.nan_dot函数的典型用法代码示例。如果您正苦于以下问题:Python nan_dot函数的具体用法?Python nan_dot怎么用?Python nan_dot使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了nan_dot函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_66
def test_66(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_6, self.mx_6)
expected_res = np.array([[7.0, 10.0], [15.0, 22.0]])
assert_array_equal(test_res, expected_res)
示例2: test_24
def test_24(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_2, self.mx_4)
expected_res = np.array([[nan, 0.0], [5.0, 0.0]])
assert_array_equal(test_res, expected_res)
示例3: test_25
def test_25(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_2, self.mx_5)
expected_res = np.array([[0.0, nan], [0.0, 5.0]])
assert_array_equal(test_res, expected_res)
示例4: test_32
def test_32(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_3, self.mx_2)
expected_res = np.array([[0.0, 0.0], [0.0, 0.0]])
assert_array_equal(test_res, expected_res)
示例5: test_41
def test_41(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_4, self.mx_1)
expected_res = np.array([[nan, 1.0], [nan, 1.0]])
assert_array_equal(test_res, expected_res)
示例6: test_12
def test_12(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_1, self.mx_2)
expected_res = np.array([[nan, nan], [nan, nan]])
assert_array_equal(test_res, expected_res)
示例7: test_11
def test_11(self):
test_res = tools.nan_dot(self.mx_1, self.mx_1)
expected_res = np.array([[np.nan, np.nan], [np.nan, 11.0]])
assert_array_equal(test_res, expected_res)
示例8: test_23
def test_23(self):
nan = np.nan
test_res = tools.nan_dot(self.mx_2, self.mx_3)
expected_res = np.array([[ 0., 0.], [ 0., 0.]])
assert_array_equal(test_res, expected_res)