spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aakash Basu <aakash.spark....@gmail.com>
Subject Re: How to Overwrite a saved PySpark ML Model
Date Mon, 21 Jan 2019 12:32:14 GMT
Hey all,

The message seems to be a Java error message, and not a Python one. So, now
I tried by calling the writemethod first:

lr_model.write().overwrite().save(input_dict["config"]["save_model_path"])

It is still running, shall update if it works, otherwise shall need your
help.

Thanks,
Aakash.

On Mon, Jan 21, 2019 at 5:14 PM Aakash Basu <aakash.spark.raj@gmail.com>
wrote:

> Hi,
>
> I am trying to overwrite a Spark ML Logistic Regression Model, but it
> isn't working.
>
> Tried:
> a) lr_model.write.overwrite().save(input_dict["config"]["save_model_path"])
> and
> b) lr_model.write.overwrite.save(input_dict["config"]["save_model_path"])
>
> This works (if I do not want to overwrite):
> lr_model.save(input_dict["config"]["save_model_path"])
>
> Error:
> [2019-01-21] [04:57:44] [ERROR]  - AttributeError at line 163 of
> 'function' object has no attribute 'overwrite': 'function' object has no
> attribute 'overwrite'
> [2019-01-21] [04:57:44] [ERROR]  - 'function' object has no attribute
> 'overwrite'
> [2019-01-21] [04:57:44] [ERROR]  - Traceback (most recent call last):
>   File "<string>", line 163, in run
> AttributeError: 'function' object has no attribute 'overwrite'
>
> What to do?
>
> Thanks,
> Aakash.
>

Mime
View raw message