68f1e8baf292e50450e1d32062d836b435bb13bd,skbio/stats/composition.py,,multiplicative_replacement,#Any#Any#,119

Before Change


        raise ValueError("Input matrix can only have two dimensions or less")
    if np.any(mat < 0):
        raise ValueError("Cannot have negative proportions")
    if np.any(np.logical_not(np.isclose(mat.sum(axis=1), 1))):
        raise ValueError("Rows need to sum up to 1")

    z_mat = (mat == 0)

After Change


        raise ValueError("Input matrix can only have two dimensions or less")
    if np.any(mat < 0):
        raise ValueError("Cannot have negative proportions")
    if not np.all(np.isclose(mat.sum(axis=1), 1)):
        raise ValueError("Rows need to sum up to 1")

    z_mat = (mat == 0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: biocore/scikit-bio
Commit Name: 68f1e8baf292e50450e1d32062d836b435bb13bd
Time: 2015-03-14
Author: jamietmorton@gmail.com
File Name: skbio/stats/composition.py
Class Name:
Method Name: multiplicative_replacement


Project Name: biocore/scikit-bio
Commit Name: 68f1e8baf292e50450e1d32062d836b435bb13bd
Time: 2015-03-14
Author: jamietmorton@gmail.com
File Name: skbio/stats/composition.py
Class Name:
Method Name: power


Project Name: biocore/scikit-bio
Commit Name: 68f1e8baf292e50450e1d32062d836b435bb13bd
Time: 2015-03-14
Author: jamietmorton@gmail.com
File Name: skbio/stats/composition.py
Class Name:
Method Name: clr


Project Name: biocore/scikit-bio
Commit Name: 68f1e8baf292e50450e1d32062d836b435bb13bd
Time: 2015-03-14
Author: jamietmorton@gmail.com
File Name: skbio/stats/composition.py
Class Name:
Method Name: centralize