Skip to content

Commit cfd41cf

Browse files
author
Guillaume Lemaitre
committed
Fix examples
1 parent 4020306 commit cfd41cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/neural_networks/plot_rbm_logistic_classification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def nudge_dataset(X, Y):
129129
# Plotting
130130

131131
plt.figure(figsize=(4.2, 4))
132-
for i, comp in enumerate(rbm.components_):
132+
for i, comp in enumerate(classifier.named_steps_['rbm'].components_):
133133
plt.subplot(10, 10, i + 1)
134134
plt.imshow(comp.reshape((8, 8)), cmap=plt.cm.gray_r,
135135
interpolation='nearest')

0 commit comments

Comments
 (0)