wujcan / SGL-TensorFlow

173 stars 42 forks source link

conf error:'./conf/MF.properties' is empty! #6

Closed wangyifeibeijing closed 3 years ago

wangyifeibeijing commented 3 years ago

Hello, I have changed my root path ,but another error occurred.

This is it:

Traceback (most recent call last): File "/(#my root path#)/SGL/main.py", line 22, in conf = Configurator(root_folder + "NeuRec.properties", default_section="hyperparameters") File "/(#my root path#)/SGL/util/configurator.py", line 68, in init self.alg_arg = self._read_config_file(arg_file) File "/(#my root path#)/SGL/util/configurator.py", line 88, in _read_config_file raise ValueError("'%s' is empty!" % filename) ValueError: './conf/MF.properties' is empty!

wujcan commented 3 years ago

Hello, I have changed my root path ,but another error occurred.

This is it:

Traceback (most recent call last): File "/(#my root path#)/SGL/main.py", line 22, in conf = Configurator(root_folder + "NeuRec.properties", default_section="hyperparameters") File "/(#my root path#)/SGL/util/configurator.py", line 68, in init self.alg_arg = self._read_config_file(arg_file) File "/(#my root path#)/SGL/util/configurator.py", line 88, in _read_config_file raise ValueError("'%s' is empty!" % filename) ValueError: './conf/MF.properties' is empty!

This is because you didn't specify the recommender model to SGL. You can set recommender=SGL in './NeuRec.properties', or run with the following command: python main.py --recommender=SGL

wangyifeibeijing commented 3 years ago

This is because you didn't specify the recommender model to SGL. You can set recommender=SGL in './NeuRec.properties', or run with the following command: python main.py --recommender=SGL

cool,that's brilliant. thank you