Twin
- class PAsampling.wrappers.Twin(ratio, idx_initial_point)[source]
This class implements the twin function from the Twinning library https://github.com/avkl/twinning.
Attributes:
- rfloat
The ratio parameter for the twin function.
- u1int
The initial point index for the twin function.
- fit(X)[source]
Fits the twin function to the data X, with shape (n_sample, n_features) and returns the result as a list.
Parameters:
- Xnumpy.ndarray
Input data matrix, representing a set of data points with shape (n_samples, n_features).
Returns:
- Sampleslist
List of indices representing the selected points using the Twin algorithm.