public class ChiSqSelectorModel extends java.lang.Object implements VectorTransformer, Saveable
param: selectedFeatures list of indices to select (filter). Must be ordered asc
| Modifier and Type | Class and Description | 
|---|---|
static class  | 
ChiSqSelectorModel.SaveLoadV1_0$  | 
| Constructor and Description | 
|---|
ChiSqSelectorModel(int[] selectedFeatures)  | 
| Modifier and Type | Method and Description | 
|---|---|
protected java.lang.String | 
formatVersion()
Current version of model save/load format. 
 | 
protected boolean | 
isSorted(int[] array)  | 
static ChiSqSelectorModel | 
load(SparkContext sc,
    java.lang.String path)  | 
void | 
save(SparkContext sc,
    java.lang.String path)
Save this model to the given path. 
 | 
int[] | 
selectedFeatures()  | 
Vector | 
transform(Vector vector)
Applies transformation on a vector. 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittransform, transformpublic static ChiSqSelectorModel load(SparkContext sc, java.lang.String path)
public int[] selectedFeatures()
protected boolean isSorted(int[] array)
public Vector transform(Vector vector)
transform in interface VectorTransformervector - vector to be transformed.public void save(SparkContext sc, java.lang.String path)
SaveableThis saves: - human-readable (JSON) model metadata to path/metadata/ - Parquet formatted data to path/data/
 The model may be loaded using Loader.load.
 
protected java.lang.String formatVersion()
SaveableformatVersion in interface Saveable