-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'scale-means-#154065274' into rel-5.2.233
- Loading branch information
Showing
18 changed files
with
5,430 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# encoding: utf-8 | ||
|
||
import numpy as np | ||
|
||
|
||
def assert_scale_means_equal(actual, expected): | ||
for act, exp in zip(actual, expected): | ||
if isinstance(exp, np.ndarray) and isinstance(act, np.ndarray): | ||
np.testing.assert_almost_equal(act, exp) | ||
elif isinstance(exp, list) and isinstance(act, list): | ||
assert_scale_means_equal(act, exp) | ||
else: | ||
assert act == exp | ||
assert True |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import os | ||
from functools import partial | ||
|
||
from cr.cube.utils import load_fixture | ||
|
||
CUBES_DIR = os.path.dirname(os.path.abspath(__file__)) | ||
|
||
|
||
def _load(cube_file): | ||
load = partial(load_fixture, CUBES_DIR) | ||
return load(cube_file) | ||
|
||
|
||
CA_CAT_X_ITEMS = _load('ca-cat-x-items.json') | ||
CA_ITEMS_X_CAT = _load('ca-items-x-cat.json') | ||
CA_X_MR = _load('ca-x-mr.json') | ||
CAT_X_CA_CAT_X_ITEMS = _load('cat-x-ca-cat-x-items.json') | ||
CAT_X_CAT = _load('cat-x-cat.json') | ||
CAT_X_MR = _load('cat-x-mr.json') | ||
MR_X_CAT = _load('mr-x-cat.json') | ||
UNIVARIATE_CAT = _load('univariate-cat.json') |
Oops, something went wrong.