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

前端 未结 3 618
时光说笑
时光说笑 2021-01-22 22:45

With Spark MLLib, I\'d build a model (like RandomForest), and then it was possible to eval it outside of Spark by loading the model and using predict o

3条回答
  •  [愿得一人]
    2021-01-22 23:09

    Re: Is there any way to build a DataFrame outside of Spark?

    It is not possible. DataFrames live inside SQLContext with it living in SparkContext. Perhaps you could work it around somehow, but the whole story is that the connection between DataFrames and SparkContext is by design.

提交回复
热议问题