function.mo.conversion_pred
function.mo.conversion_pred(X)Compute conversion predictions for each row in the input array.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| X | np.ndarray | 2D array where each row is a configuration. | required |
Returns
| Name | Type | Description |
|---|---|---|
| np.ndarray | np.ndarray: 1D array of conversion predictions. |
Examples
>>> import numpy as np
>>> from spotoptim.function.mo import conversion_pred
>>> # Example input data
>>> X = np.array([[1, 2, 3], [4, 5, 6]])
>>> conversion_pred(X)
array([ 3.5, 19.5])