Open mary-design-testing opened 4 years ago
Hi there!
It seems to be an error in lap_score.py. Please, take a look at the following excerpt:
lap_score.py
# if 'W' is not specified, use the default W if 'W' not in kwargs.keys(): W = construct_W(X) # construct the affinity matrix W W = kwargs['W']
If the user does not pre-compute W, then the last line results in a KeyError. I think it's easy to fix, since there seems to be a missing else:
W
else
if 'W' not in kwargs.keys(): # if 'W' is not specified, use the default W W = construct_W(X) else: # construct the affinity matrix W W = kwargs['W']
Thanks. Regards.
Hi there!
It seems to be an error in
lap_score.py
. Please, take a look at the following excerpt:If the user does not pre-compute
W
, then the last line results in a KeyError. I think it's easy to fix, since there seems to be a missingelse
:Thanks. Regards.