@@ -731,7 +731,7 @@ def objective(logtheta_lambda):
731731 result = differential_evolution (objective , bounds )
732732 return result .x , result .fun
733733
734- def plot (self , i : int = 0 , j : int = 1 , show : Optional [bool ] = True ) -> None :
734+ def plot (self , i : int = 0 , j : int = 1 , show : Optional [bool ] = True , add_points : bool = True ) -> None :
735735 """
736736 This function plots 1D and 2D surrogates.
737737 Only for compatibility with the old Kriging implementation.
@@ -746,6 +746,8 @@ def plot(self, i: int = 0, j: int = 1, show: Optional[bool] = True) -> None:
746746 show (bool):
747747 If `True`, the plots are displayed.
748748 If `False`, `plt.show()` should be called outside this function.
749+ add_points (bool):
750+ If `True`, the points from the design are added to the plot.
749751
750752 Returns:
751753 None
@@ -795,4 +797,4 @@ def plot(self, i: int = 0, j: int = 1, show: Optional[bool] = True) -> None:
795797 if show :
796798 plt .show ()
797799 else :
798- plotkd (model = self , X = self .X_ , y = self .y_ , i = i , j = j , show = show , var_type = self .var_type )
800+ plotkd (model = self , X = self .X_ , y = self .y_ , i = i , j = j , show = show , var_type = self .var_type , add_points = True )
0 commit comments