YoungXiyuan/DCA

TypeError: predict() missing 2 required positional arguments: 'dynamic_option' and 'order_learning'

jeremytanjianle opened this issue · 1 comments

Issue:

Running the following command:

python main.py --mode eval --order offset --model_path 'Model/model' --method SL

Raises the following error:

TypeError: predict() missing 2 required positional arguments: 'dynamic_option' and 'order_learning'

Is this the correct fix?

As I can see it, the main.py script should have the following line.

predictions = ranker.predict(data, args.isDynamic, ranker.model.order_learning)
  1. Would this be the correct way to run the main script for eval?
  2. What is order_learning ?

Thank you for your interest in our work and sorry for my late reply.

As to your first question, the modification of the main.py script should be
predictions = ranker.predict(data, args.isDynamic, args.order_learning)

As to your second question, the argument order_learning is useless, it relates to our potential future work, and its default value has already been set as False.