示例#1
0
def _check_init_weights(weights, shape, whom):
    weights = check_array(weights)
    _check_array_shape(weights, shape, whom)
    _check_unit_axis_sums(weights, whom, axis=1)
示例#2
0
def _check_init_transition_matrices(transition_matrices, shape, whom):
    _check_array_shape(transition_matrices, shape, whom)
    _check_unit_axis_sums(transition_matrices, whom, axis=1)
示例#3
0
def _check_init_dictionary(dictionary, shape, whom):
    dictionary = check_array(dictionary)
    _check_array_shape(dictionary, shape, whom)
    _check_unit_axis_sums(dictionary, whom, axis=1)
示例#4
0
def _check_init_order_weights(order_weights, shape, whom):
    _check_array_shape(order_weights, shape, whom)
    _check_unit_axis_sums(order_weights, whom, axis=0)