209209plt .xlabel ('Principal component index' )
210210plt .legend (loc = 'best' )
211211plt .tight_layout ()
212- # plt.savefig('images /05_02.png', dpi=300)
212+ # plt.savefig('figures /05_02.png', dpi=300)
213213plt .show ()
214214
215215
264264plt .ylabel ('PC 2' )
265265plt .legend (loc = 'lower left' )
266266plt .tight_layout ()
267- # plt.savefig('images /05_03.png', dpi=300)
267+ # plt.savefig('figures /05_03.png', dpi=300)
268268plt .show ()
269269
270270
@@ -360,7 +360,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
360360plt .ylabel ('PC 2' )
361361plt .legend (loc = 'lower left' )
362362plt .tight_layout ()
363- # plt.savefig('images /05_04.png', dpi=300)
363+ # plt.savefig('figures /05_04.png', dpi=300)
364364plt .show ()
365365
366366
@@ -371,7 +371,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
371371plt .ylabel ('PC 2' )
372372plt .legend (loc = 'lower left' )
373373plt .tight_layout ()
374- # plt.savefig('images /05_05.png', dpi=300)
374+ # plt.savefig('figures /05_05.png', dpi=300)
375375plt .show ()
376376
377377
@@ -397,7 +397,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
397397
398398plt .ylim ([- 1 , 1 ])
399399plt .tight_layout ()
400- plt .savefig ('images /05_05_02.png' , dpi = 300 )
400+ plt .savefig ('figures /05_05_02.png' , dpi = 300 )
401401plt .show ()
402402
403403
@@ -419,7 +419,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
419419
420420plt .ylim ([- 1 , 1 ])
421421plt .tight_layout ()
422- plt .savefig ('images /05_05_03.png' , dpi = 300 )
422+ plt .savefig ('figures /05_05_03.png' , dpi = 300 )
423423plt .show ()
424424
425425
@@ -555,7 +555,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
555555plt .ylim ([- 0.1 , 1.1 ])
556556plt .legend (loc = 'best' )
557557plt .tight_layout ()
558- #plt.savefig('images /05_07.png', dpi=300)
558+ #plt.savefig('figures /05_07.png', dpi=300)
559559plt .show ()
560560
561561
@@ -584,7 +584,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
584584plt .ylabel ('LD 2' )
585585plt .legend (loc = 'lower right' )
586586plt .tight_layout ()
587- plt .savefig ('images /05_08.png' , dpi = 300 )
587+ plt .savefig ('figures /05_08.png' , dpi = 300 )
588588plt .show ()
589589
590590
@@ -609,7 +609,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
609609plt .ylabel ('LD 2' )
610610plt .legend (loc = 'lower left' )
611611plt .tight_layout ()
612- # plt.savefig('images /05_09.png', dpi=300)
612+ # plt.savefig('figures /05_09.png', dpi=300)
613613plt .show ()
614614
615615
@@ -622,7 +622,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
622622plt .ylabel ('LD 2' )
623623plt .legend (loc = 'lower left' )
624624plt .tight_layout ()
625- # plt.savefig('images /05_10.png', dpi=300)
625+ # plt.savefig('figures /05_10.png', dpi=300)
626626plt .show ()
627627
628628
@@ -645,7 +645,7 @@ def plot_decision_regions(X, y, classifier, test_idx=None, resolution=0.02):
645645for i in range (4 ):
646646 ax [i ].imshow (digits .images [i ], cmap = 'Greys' )
647647
648- # plt.savefig('images /05_12.png', dpi=300)
648+ # plt.savefig('figures /05_12.png', dpi=300)
649649plt .show ()
650650
651651
@@ -691,7 +691,7 @@ def plot_projection(x, colors):
691691 PathEffects .Normal ()])
692692
693693plot_projection (X_digits_tsne , y_digits )
694- # plt.savefig('images /05_13.png', dpi=300)
694+ # plt.savefig('figures /05_13.png', dpi=300)
695695plt .show ()
696696
697697
0 commit comments