4

I use pyspark.ml.tuning.CrossValidator and Pipline to train a CrossValidatorModel named cv_model,after that,I want to persist the model, so i use cv_model.save to save my model,but an error occured:AttributeError: 'Pipeline' object has no attribute '_transfer_param_map_to_java' mycode

error message

I do not know how to solve the error. thanks for help me!

1
  • I also run into the same error. Do you happen to find an answer to that ? Commented May 4, 2018 at 15:36

1 Answer 1

8

i find a way to solve the problem myself:

pip_model = cv_model.bestModel
pip_model.write().overwrite().save("/Users/fushuai/PyCharmProject/CTREstimation/model")
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.