switch input_sensitivity function to model

This commit is contained in:
Zhenwen Dai 2014-03-04 14:25:11 +00:00
parent 0f37cc721b
commit b9dcb7f640
4 changed files with 14 additions and 2 deletions

View file

@ -20,7 +20,7 @@ def most_significant_input_dimensions(model, which_indices):
input_1, input_2 = 0, 1
else:
try:
input_1, input_2 = np.argsort(model.kern.input_sensitivity())[::-1][:2]
input_1, input_2 = np.argsort(model.input_sensitivity())[::-1][:2]
except:
raise ValueError, "cannot automatically determine which dimensions to plot, please pass 'which_indices'"
else: