Showing 103 of 103 total issues
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert len(indices) == len(measurements)
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(self.restarts, int), "the restarts keyword must be of type int"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert palinstance.number_design_points == len(
y
), "The number of points in the design space must equal the number of measurements"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert (
len(X) > n_samples
), "The numbers of points that shall be selected (n_samples),\
needs to be smaller than the length of the feature matrix (X)"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(y, np.ndarray), "Input array y must be a numpy array"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert (
len(y) == palinstance.number_design_points
), "Length of y must equal the size of the design space"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert X_design.ndim == 2, "You must provide a two-dimensional numpy array"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert n_samples > 0 and isinstance(
n_samples, int
), "The number of points that shall be selected (n_samples)\
needs to be an integer greater than 0"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert node is not None
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(y, np.ndarray), "Input array y must be a numpy array"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert y.ndim == 2, "y must be a two-dimensional numpy array"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert (
len(labels) == num_targets
), "If labels are provided the length of the labels list \
must equal the number of targets"
- Exclude checks
Starting a process with a partial executable path Open
Open
ret = check_output( # noqa: S603,S607
["git", "rev-parse", "HEAD"],
cwd=os.path.dirname(__file__),
stderr=devnull,
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(
model, GPy.models.GPRegression
), "This wrapper function is written for GPy.models.GPRegression"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(pareto_optimal, np.ndarray), "The arguments must be numpy arrays"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(non_pareto_points, np.ndarray), "The arguments must be numpy arrays"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert (
len(y) == palinstance.number_design_points
), "Length of y must equal the size of the design space"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert (
y.shape[1] == palinstance.ndim
), "y needs to be a two-dimensional array which column number \
equals the number of targets"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert len(activations) == len(
hidden_layers
), "The number of hidden layers should match the number of nonlinearities"
- Exclude checks
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code. Open
Open
assert isinstance(self.parallel, bool), "the parallel keyword must be of type bool"
- Exclude checks