im trying recomendation in the hopsworks gitub repo
link- hopsworks-tutorials/advanced_tutorials/recommender-system/2_train_retrieval_model.ipynb at master · logicalclocks/hopsworks-tutorials · GitHub
RestAPIError :
Cell In[29]: line 16
5 mr_query_model = mr.tensorflow.create_model(
6 name=“query_model”, # Name of the model
7 description=“Model that generates query embeddings from user and transaction features”, # Description of the model
8 # Example input for the model
9 model_schema=query_model_schema, # Schema of the model
10 )
11 #have to do manually
12 # fb=project.get_dataset_api()
13 # fb.upload(“candidate_model/variables/variables.data-00000-of-00001”,“/Projects/pollz/Models/candidate_model/1/variables”,overwrite=True)
14
15 # Save the query_model to the Model Registry
—> 16 mr_query_model.save(“query_model”) # Path to save the model
File c:\Users\sathish C\AppData\Local\Programs\Python\Python39\lib\site-packages\hsml\model.py:113, in Model.save(self, model_path, await_registration, keep_original_files, upload_configuration)
90 def save(
91 self,
92 model_path,
(…)
95 upload_configuration: Optional[Dict[str, Any]] = None,
96 ):
97 “”"Persist this model including model files and metadata to the model registry.
98
…
110 if stream:
111 return response
RestAPIError: Metadata operation error: (url: https://c.app.hopsworks.ai/hopsworks-api/api/project/974998/dataset/upload/%2FProjects%2Fpollz%2FModels%2Fquery_model%2F2\variables). Server response:
HTTP code: 400, HTTP reason: Invalid URI, body: b’’