@@ -2064,7 +2064,7 @@ def test_correlations_2(self):
20642064
20652065 def test_stability_plot_1 (self ):
20662066 np .random .seed (42 )
2067- df = pd .DataFrame (np .random .randint (0 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
2067+ df = pd .DataFrame (np .random .randint (1 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
20682068 X = df .iloc [:, :- 1 ]
20692069 y = df .iloc [:, - 1 ]
20702070 model = DecisionTreeRegressor ().fit (X , y )
@@ -2081,7 +2081,7 @@ def test_stability_plot_1(self):
20812081
20822082 def test_stability_plot_2 (self ):
20832083 np .random .seed (42 )
2084- df = pd .DataFrame (np .random .randint (0 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
2084+ df = pd .DataFrame (np .random .randint (1 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
20852085 X = df .iloc [:, :- 1 ]
20862086 y = df .iloc [:, - 1 ]
20872087 model = DecisionTreeRegressor ().fit (X , y )
@@ -2101,7 +2101,7 @@ def test_stability_plot_2(self):
21012101 assert np .array (list (output .data [0 ].x )).dtype == "float"
21022102
21032103 def test_stability_plot_3 (self ):
2104- df = pd .DataFrame (np .random .randint (0 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
2104+ df = pd .DataFrame (np .random .randint (1 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
21052105 X = df .iloc [:, :- 1 ]
21062106 y = df .iloc [:, - 1 ]
21072107 model = DecisionTreeRegressor ().fit (X , y )
@@ -2120,7 +2120,7 @@ def test_stability_plot_3(self):
21202120 assert np .array (list (output .data [0 ].x )).dtype == "float"
21212121
21222122 def test_stability_plot_4 (self ):
2123- df = pd .DataFrame (np .random .randint (0 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
2123+ df = pd .DataFrame (np .random .randint (1 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
21242124 X = df .iloc [:, :- 1 ]
21252125 y = df .iloc [:, - 1 ]
21262126 model = DecisionTreeRegressor ().fit (X , y )
@@ -2140,7 +2140,7 @@ def test_stability_plot_4(self):
21402140 assert np .array (list (output .data [0 ].x )).dtype == "float"
21412141
21422142 def test_stability_plot_5 (self ):
2143- df = pd .DataFrame (np .random .randint (0 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
2143+ df = pd .DataFrame (np .random .randint (1 , 100 , size = (15 , 4 )), columns = list ('ABCD' ))
21442144 X = df .iloc [:, :- 1 ]
21452145 y = df .iloc [:, - 1 ]
21462146 model = DecisionTreeRegressor ().fit (X , y )
0 commit comments