Skip to content

Error porting xgboost model #1

Description

@ns96

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions