How to eval spark.ml model without DataFrames/SparkContext? -


with spark mllib, i'd build model (like randomforest), , possible eval outside of spark loading model , using predict on passing vector of features.

it seems spark ml, predict called transform , acts on dataframe.

is there way build dataframe outside of spark since seems 1 needs sparkcontext build dataframe?

am missing something?

re: is there way build dataframe outside of spark?

it not possible. dataframes live inside sqlcontext living in sparkcontext. perhaps work around somehow, whole story connection between dataframes , sparkcontext design.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -