-
Notifications
You must be signed in to change notification settings - Fork 635
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
嘗試建立yelp知識圖譜 #1597
Comments
@emilyjeng 您好,請問是否可以提供一下您運行的配置文件? |
檔案連結如下: yaml檔設定如下: #data filtering for interactions user_inter_num_interval: "[10,inf)" embedding_size: 64 #training and evaluation 執行: |
@emilyjeng 您好,請嘗試將normalize_all設置爲False |
@emilyjeng 您好,這個問題是由於數據集中存在某個用戶或者物品的交互過少,導致它交互的對象全被過濾掉了。您可以嘗試降低user_inter_num_interval和item_inter_num_interval來解決這個問題。 |
您好!我嘗試簡單建立了yelp的知識圖譜,在.kg檔案中,我將head_id:token設為iten_id:token,relation_id:token設為location.shop.location,tail_id:token設為categories:token_seq


如下所示:
也增加另一個relation_id:token
在.link檔案中,item_id:token保持不變,entity_id:token設為categories:token_seq,如下所示:

但在我執行時會遇到錯誤,如下所示:
Traceback (most recent call last):
File "run_recbole.py", line 48, in
run_recbole(
File "/Emily/RecBole-master/recbole/quick_start/quick_start.py", line 69, in run_recbole
dataset = create_dataset(config)
File "/Emily/RecBole-master/recbole/data/utils.py", line 70, in create_dataset
dataset = dataset_class(config)
File "/Emily/RecBole-master/recbole/data/dataset/kg_dataset.py", line 68, in init
super().init(config)
File "/Emily/RecBole-master/recbole/data/dataset/dataset.py", line 108, in init
self._from_scratch()
File "/Emily/RecBole-master/recbole/data/dataset/dataset.py", line 120, in _from_scratch
self._data_processing()
File "/Emily/RecBole-master/recbole/data/dataset/dataset.py", line 168, in _data_processing
self._normalize()
File "/Emily/RecBole-master/recbole/data/dataset/dataset.py", line 710, in _normalize
feat[field] = norm(feat[field].values)
File "/Emily/RecBole-master/recbole/data/dataset/dataset.py", line 698, in norm
mx, mn = max(arr), min(arr)
ValueError: max() arg is an empty sequence
我不理解該如何處理這問題?或是我在建立知識圖譜的想法有錯?
如需復現我可以提供資料
The text was updated successfully, but these errors were encountered: