label-studio-ml-backend icon indicating copy to clipboard operation
label-studio-ml-backend copied to clipboard

examples sklearn_text_classifier model.py get project_id error

Open yangzhouhu opened this issue 1 year ago • 1 comments

label-studio-ml-backend examples sklearn_text_classifier model.py function fit(self, event, data, **kwargs): The error in obtaining the variable 'project_id' at line 165 :

× project_id = data['annotation']['project'] │ ╰─> should be change to : project_id = data['project']['id']

yangzhouhu avatar Apr 01 '25 06:04 yangzhouhu

I have put up a pull request that I believe should fix this at https://github.com/HumanSignal/label-studio-ml-backend/pull/790

ginic avatar Jul 03 '25 15:07 ginic