Closed lzw950905 closed 3 years ago
Hey @lzw950905.
select_best_model_ranking
returns 6 values. You listed only 5 and missed experimental_history
.
The snippet below will do:
best_model, best_params, best_mrr_train, \
ranks_test, mrr_test, experimental_history = select_best_model_ranking(ComplEx,
# Dataset
X_dict['train'],
X_dict['valid'],
X_dict['test'],
# Parameter grid
param_grid,
max_combinations=3,
# Use filtered set for eval
use_filter=True,
# corrupt subject and objects separately during eval
use_default_protocol=True,
# Log all the model hyperparams and evaluation stats
verbose=False)
Description
When I run the Model selection process, even though I just use very small search space (just optimize one parameter), it always reports the bug: ValueError: too many values to unpack.
Actual Behavior
This is my code. X_dict = load_wn18rr()
Expected Behavior
No such error and run successfully.
Steps to Reproduce