You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
model.write().overwrite().save('catboost_pipeline')
from pyspark.ml.pipeline import PipelineModel
PipelineModel.load('catboost_pipeline')
And I catch a below Exception:
Exception ignored in: <function JavaWrapper.__del__ at 0x7f67122887a0>
Traceback (most recent call last):
File "/content/spark-3.0.3-bin-hadoop2.7/python/pyspark/ml/wrapper.py", line 42, in __del__
if SparkContext._active_spark_context and self._java_obj is not None:
AttributeError: 'CatBoostClassificationModel' object has no attribute '_java_obj'
TypeError Traceback (most recent call last)
<ipython-input-34-9521ec2f514b> in <module>()
1 from pyspark.ml.pipeline import PipelineModel
----> 2 PipelineModel.load('catboost_pipeline')
5 frames
/tmp/spark-9b120f03-4fd5-4e00-831e-c355a529ddde/userFiles-87dc1f0f-6983-4768-ac52-34427f077389/ai.catboost_catboost-spark_3.0_2.12-1.0.3.jar/catboost_spark/core.py in _from_java_patched_for_catboost(java_stage)
55 if issubclass(py_type, JavaParams):
56 # Load information from java_stage to the instance.
---> 57 py_stage = py_type()
58 py_stage._java_obj = java_stage
59 py_stage._resetUid(java_stage.uid())
TypeError: __init__() missing 1 required positional argument: 'java_model'
The text was updated successfully, but these errors were encountered:
AlexKbit
changed the title
PipelineModel don't load when contains a CatBoostClassificationModel
SparkML: PipelineModel don't load when contains a CatBoostClassificationModel
Nov 26, 2021
AlexKbit
changed the title
SparkML: PipelineModel don't load when contains a CatBoostClassificationModel
[SparkML] PipelineModel don't load when contains a CatBoostClassificationModel
Nov 26, 2021
Problem: PipelineModel don't load when contains a CatBoostClassificationModel
catboost version: ai.catboost:catboost-spark_3.0_2.12:1.0.3
Operating System: Google CoLab (https://colab.research.google.com/drive/1syJg_WOLFMd4z16pjMzmufJxGPA-lHfS?usp=sharing)
CPU: 4
GPU: 0
Hi, my issue relate with save/load process with SparkML PipelineModel.
I build and fit pipeline(with CatBoostClassification) to get PipelineModel.
Then I save it and try to load
And I catch a below Exception:
The text was updated successfully, but these errors were encountered: