Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openxai/evaluator.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ def eval_pred_faithfulness(self, num_samples: int = 100, invert: bool = False):

return np.mean(np.abs(y - y_perturbed), axis=0)[0]

def _compute_Lp_norm_diff(self, vec1, vec2, normalize_to_relative_change: bool = True, eps: np.float = 0.001):
def _compute_Lp_norm_diff(self, vec1, vec2, normalize_to_relative_change: bool = True, eps: float = 0.001):
""" Returns the Lp norm of the difference between vec1 and vec2.
Args:
normalize_by_vec1: when true, normalizes the difference between vec1 and vec2 by vec1
Expand Down