We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://discuss.xgboost.ai/t/save-pyspark-model-load-it-on-other-language/2894
The text was updated successfully, but these errors were encountered:
Hey, I managed to solve this so I'll share how I've solved.
import json f = open('pyspark_raw_json.json') pyspark_raw_json = json.load(f) with open('pyspark_json_converted.json', 'w', encoding='utf-8') as f: json.dump(json.loads(list(pyspark_raw_json.values())[0]), f)
loaded_model = xgb.XGBClassifier() loaded_model.load_model('pyspark_model_converted.json')
Sorry, something went wrong.
I think we need to change the "save" to the model that xgboost can use directly. Let me resolve this.
No branches or pull requests
https://discuss.xgboost.ai/t/save-pyspark-model-load-it-on-other-language/2894
The text was updated successfully, but these errors were encountered: