R/ft_minmaxscaler.R

Defines functions ft_minmaxscaler

ft_minmaxscaler <- function (x, input.col = NULL, output.col = NULL, ...) {
  ml_backwards_compatibility_api()
  class <- "org.apache.spark.ml.feature.MinMaxScaler"
  
  # indices <- as.array(indices-1) # sacla array start from 0 !!
  invoke_simple_transformer(x, class, list(setInputCol = ensure_scalar_character(input.col),
                                           setOutputCol = ensure_scalar_character(output.col)))
}
environment(ft_minmaxscaler) <- asNamespace('sparklyr')
catlain/sparklyrfun documentation built on Jan. 21, 2018, 4:11 a.m.