@@ -229,35 +229,32 @@ def screening_print(X, fun, xi, p, labels, bounds=None) -> pd.DataFrame:
229229 return df
230230
231231
232- def screening_plot (X , fun , xi , p , labels , bounds = None , show = True ):
232+ def screening_plot (X , fun , xi , p , labels , bounds = None , show = True ) -> None :
233233 """Generates a plot with elementary effect screening metrics.
234234
235235 This function calculates the mean and standard deviation of the
236236 elementary effects for a given set of design variables and plots
237237 the results.
238238
239239 Args:
240- X (np.ndarray): The screening plan matrix, typically structured
241- within a [0,1]^k box.
242- fun (object): The objective function to evaluate at each
243- design point in the screening plan.
244- xi (float): The elementary effect step length factor.
245- p (int): Number of discrete levels along each dimension.
246- labels (list of str): A list of variable names corresponding to
247- the design variables.
248- bounds (np.ndarray): A 2xk matrix where the first row contains
249- lower bounds and the second row contains upper bounds for
250- each variable.
251- show: (bool): If True, the plot is displayed. Defaults to True.
240+ X (np.ndarray):
241+ The screening plan matrix, typically structured within a [0,1]^k box.
242+ fun (object):
243+ The objective function to evaluate at each design point in the screening plan.
244+ xi (float):
245+ The elementary effect step length factor.
246+ p (int):
247+ Number of discrete levels along each dimension.
248+ labels (list of str):
249+ A list of variable names corresponding to the design variables.
250+ bounds (np.ndarray):
251+ A 2xk matrix where the first row contains lower bounds and
252+ the second row contains upper bounds for each variable.
253+ show (bool):
254+ If True, the plot is displayed. Defaults to True.
252255
253256 Returns:
254- pd.DataFrame: A DataFrame containing three columns:
255- - 'varname': The name of each variable.
256- - 'mean': The mean of the elementary effects for each variable.
257- - 'sd': The standard deviation of the elementary effects for
258- each variable.
259- or None: If print is set to False, a plot of the results is
260- generated instead of returning a DataFrame.
257+ None: The function generates a plot of the results.
261258
262259 Examples:
263260 >>> import numpy as np
0 commit comments