Skip to content
New issue

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

Error porting xgboost model #1

Open
ns96 opened this issue May 14, 2024 · 0 comments
Open

Error porting xgboost model #1

ns96 opened this issue May 14, 2024 · 0 comments

Comments

@ns96
Copy link

ns96 commented May 14, 2024

When ever I try porting a xgboost model of the Iris dataset, I get the following error (even when ran as Administrator).

File "C:\Users\Nathan\My Drive\Fun Code And Hobbies\ArduinoMicroML\notebook\Port_XGB.py", line 18, in
c_code = port(clf, classmap=class_map)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nathan\AppData\Roaming\Python\Python311\site-packages\micromlgen\micromlgen.py", line 48, in port
return port_xgboost(**locals(), **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Nathan\AppData\Roaming\Python\Python311\site-packages\micromlgen\xgboost.py", line 40, in port_xgboost
clf.save_model(tmp.name)
File "C:\Users\Nathan\AppData\Roaming\Python\Python311\site-packages\xgboost\sklearn.py", line 823, in save_model
self.get_booster().save_model(fname)
File "C:\Users\Nathan\AppData\Roaming\Python\Python311\site-packages\xgboost\core.py", line 2534, in save_model
_check_call(_LIB.XGBoosterSaveModel(self.handle, c_str(fname)))
File "C:\Users\Nathan\AppData\Roaming\Python\Python311\site-packages\xgboost\core.py", line 282, in _check_call
raise XGBoostError(py_str(_LIB.XGBGetLastError()))
xgboost.core.XGBoostError: [09:46:02] C:\buildkite-agent\builds\buildkite-windows-cpu-autoscaling-group-i-0b3782d1791676daf-1\xgboost\xgboost-ci-windows\dmlc-core\src\io\local_filesys.cc:209: Check failed: allow_null: LocalFileSystem::Open "C:\Users\Nathan\AppData\Local\Temp\tmpmyj57cav.json": Permission denied

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant