Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
# Conflicts:
#	bamt/networks/big_brave_bn.py
  • Loading branch information
jrzkaminski committed Apr 27, 2024
2 parents d5409c5 + 191387a commit 179aea0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions bamt/networks/big_brave_bn.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def set_possible_edges_by_brave(
Returns:
None: Modifies the object's possible_edges attribute.
"""
proximity_matrix = self._get_proximity_matrix(df, proximity_metric)
brave_matrix = self._get_brave_matrix(df.columns, proximity_matrix, n_nearest)
df_copy = df.copy(deep=True)
proximity_matrix = self._get_proximity_matrix(df_copy, proximity_metric)
brave_matrix = self._get_brave_matrix(df_copy.columns, proximity_matrix, n_nearest)

threshold_value = brave_matrix.max(numeric_only=True).max() * threshold
filtered_brave_matrix = brave_matrix[brave_matrix > threshold_value].stack()
Expand Down

0 comments on commit 179aea0

Please sign in to comment.