8cb97248c6fe5b84312a3e4f74c20bfb19cc8d0e,skbio/tree/_nj.py,,_compute_collapsed_dm,#Any#Any#Any#Any#Any#,186
Before Change
for idx1, out_id1 in enumerate(out_ids[1:]):
result[0, idx1 + 1] = result[idx1 + 1, 0] = _otu_to_new_node(
dm, i, j, out_id1, disallow_negative_branch_length)
for idx2, out_id2 in enumerate(out_ids[1:idx1+1]):
result[idx1+1, idx2+1] = result[idx2+1, idx1+1] = \
dm[out_id1, out_id2]
return DistanceMatrix(result, out_ids)
def _lowest_index(dm):
After Change
result = np.zeros((out_n, out_n))
// pre-populate the result array with known distances
ij_indexes = [dm.index(i), dm.index(j)]
result[1:, 1:] = np.delete(np.delete(dm.data, ij_indexes, axis=0),
ij_indexes, axis=1)
// calculate the new distances from the current DistanceMatrix
k_to_u = 0.5 * (dm[i] + dm[j] - dm[i, j])
// set negative branches to 0 if specified
if disallow_negative_branch_length:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: biocore/scikit-bio
Commit Name: 8cb97248c6fe5b84312a3e4f74c20bfb19cc8d0e
Time: 2017-04-27
Author: sdbrown@gmail.com
File Name: skbio/tree/_nj.py
Class Name:
Method Name: _compute_collapsed_dm
Project Name: fgnt/pb_bss
Commit Name: b6ee3d5b67fcb6903156a2b59f4a3832323adf27
Time: 2019-08-16
Author: mail@lukas-drude.de
File Name: nt/evaluation/sxr.py
Class Name:
Method Name: output_sxr
Project Name: biocore/scikit-bio
Commit Name: 8cb97248c6fe5b84312a3e4f74c20bfb19cc8d0e
Time: 2017-04-27
Author: sdbrown@gmail.com
File Name: skbio/tree/_nj.py
Class Name:
Method Name: _compute_collapsed_dm
Project Name: scikit-learn-contrib/DESlib
Commit Name: adfcd7c21f3f2fc6077eb00abf4887cd2d567880
Time: 2018-04-06
Author: luiz.gh@gmail.com
File Name: deslib/base.py
Class Name: DS
Method Name: predict_proba