initialize¶
-
specviz.interfaces.initializers.initialize(instance, x, y)[source]¶ Initialize given model.
X and Y are for now Quantity arrays with the independent and dependent variables. It’s assumed X values are stored in increasing order in the array.
Parameters: - instance (
models) – The model to initialize. - y (x,) – The data to use to initialize from.
Returns: instance – The initialized model. If there are any errors, the instance is returned uninitialized.
Return type: models- instance (