Skip to content

Commit

Permalink
Default theta = 1
Browse files Browse the repository at this point in the history
  • Loading branch information
dburkhardt committed Feb 12, 2019
1 parent dfd8321 commit 3885ecc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graphtools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ class BaseGraph(with_metaclass(abc.ABCMeta, Base)):
'theta' : min-max
'none' : no symmetrization
theta: float (default: 0.5)
theta: float (default: 1)
Min-max symmetrization constant.
K = `theta * min(K, K.T) + (1 - theta) * max(K, K.T)`
Expand Down Expand Up @@ -385,7 +385,7 @@ def _check_symmetrization(self, kernel_symm, theta):
if theta is None:
warnings.warn("kernel_symm='theta' but theta not given. "
"Defaulting to theta=0.5.")
self.theta = theta = 0.5
self.theta = theta = 1
elif not isinstance(theta, numbers.Number) or \
theta < 0 or theta > 1:
raise ValueError("theta {} not recognized. Expected "
Expand Down

0 comments on commit 3885ecc

Please sign in to comment.