Пример #1
0
def test_parameter_check(params, error, err_msg):
    """Test parameter validation."""
    transformer = JointRecurrencePlot(**params)
    with pytest.raises(error, match=re.escape(err_msg)):
        transformer.transform(X)
Пример #2
0
def jrp_encode_3_to_3(arr_3d):
    transformer = JointRecurrencePlot()
    jrp_iss_3d = (transformer.transform(array.swapaxes(1, 2))
                  for array in arr_3d)
    return jrp_iss_3d