Skip to content
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

Radom model get error: TypeError: test() takes from 6 to 8 positional arguments but 9 were given #262

Open
littlebeanbean7 opened this issue Nov 11, 2024 · 0 comments

Comments

@littlebeanbean7
Copy link

if I follow quickstart.ipynb and run:
python main.py -data ../data/raw/dblp/toy.dblp.v12.json -domain dblp -model random

I get below error:

Loading sparse matrices from ./../data/preprocessed/dblp/toy.dblp.v12.json/teamsvecs.pkl ...
Loading indexes pickle from ./../data/preprocessed/dblp/toy.dblp.v12.json/indexes.pkl ...
It took 0.000518798828125 seconds to load from the pickles.
It took 0.002239704132080078 seconds to load the sparse matrices.
Running for (dataset, model): (dblp, random) ...
Traceback (most recent call last):
File "main.py", line 210, in
run(data_list=args.data_list,
File "main.py", line 167, in run
m_obj.run(splits, vecs_, indexes, f'{output_path}', settings['model']['baseline'][baseline_name], settings['model']['cmd'], settings['fair'], merge_skills=False)
File "/mnt/data/lingling/OpeNTF/src/mdl/ntf.py", line 138, in run
if 'test' in cmd: self.test(output, splits, indexes, vecs, settings, on_train_valid_set, per_epoch, merge_skills)
TypeError: test() takes from 6 to 8 positional arguments but 9 were given

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant