machine learning - Is it possible to save a trained Spark ML model or crossvalidator to postgree database? -


is possible save trained spark ml model or crossvalidator postgree database ? find ways save disk or hdfs can save in rdbms(e.g. postgree) table ?

in general not. ml models use specific structure parquet files storing model, metadata , optionally data. possible create wrappers store same data in relational database, there no such functionality in spark @ moment.

for subset of models can:

  • serialize model using java serialization.
  • store saved model large object.

this limited non-distributed models.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -