ca5deddb70ab53ac3b98ae2ae94af033693ab0b8,skbio/diversity/alpha/_base.py,,faith_pd,#,263

Before Change


    counts_by_node, tree_index, branch_lengths = \
        _vectorize_counts_and_tree(counts, otu_ids, tree)

    counts_by_node = np.where(counts_by_node > 0, 1, 0)
    result = (branch_lengths * counts_by_node).sum()

    return result


@experimental(as_of="0.4.0")
def fisher_alpha(counts):

After Change


    counts_by_node, tree_index, branch_lengths = \
        _vectorize_counts_and_tree(counts, otu_ids, tree)

    return _faith_pd(counts_by_node, branch_lengths)


@experimental(as_of="0.4.0")
def fisher_alpha(counts):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: biocore/scikit-bio
Commit Name: ca5deddb70ab53ac3b98ae2ae94af033693ab0b8
Time: 2015-11-11
Author: gregcaporaso@gmail.com
File Name: skbio/diversity/alpha/_base.py
Class Name:
Method Name: faith_pd


Project Name: hmmlearn/hmmlearn
Commit Name: 265e39fe5ef8dd19f227a8db129ae8d2329121e9
Time: 2016-04-03
Author: superbobry@gmail.com
File Name: hmmlearn/utils.py
Class Name:
Method Name: log_mask_zero


Project Name: rasbt/mlxtend
Commit Name: af0d98898e2be517096c18335ab10b43b9fd461e
Time: 2015-03-17
Author: se.raschka@me.com
File Name: mlxtend/classifier/adaline.py
Class Name: Adaline
Method Name: predict


Project Name: rasbt/mlxtend
Commit Name: af0d98898e2be517096c18335ab10b43b9fd461e
Time: 2015-03-17
Author: se.raschka@me.com
File Name: mlxtend/classifier/perceptron.py
Class Name: Perceptron
Method Name: predict