DCA icon indicating copy to clipboard operation
DCA copied to clipboard

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

Open jeremytanjianle opened this issue 2 years ago • 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 ?

jeremytanjianle avatar Aug 10 '21 11:08 jeremytanjianle