I'm trying to convert code from Python to Scala and I was stuck in the function that exists in scikit-learn and didn't find it in Scala Spark
selector= SelectKBest(k=1).fit(X=x, y=y)
in the documentation https://scikit-learn.org/stable/modules/generated/sklearn.feature_selection.SelectKBest.html it says that the default value is Default is f_classif
Spark Mlib doc: http://spark.apache.org/docs/latest/ml-features.html#feature-selectors
Only
- VectorSlicer
- RFormula
- ChiSqSelector
Is there any alternative Package that select Top k based on the Anova f-test (f_classif) in Scala?