init

Model.init(model)[source]

Create a random model by sequential sampling. The first terms are filled with the forced terms.

Note

This operation happens in-place.

Parameters

model : np.array(1d)

Returns

modelnp.array(1d)

A random model represented by the indices in the model matrix X.