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

--feature_set_focus bad parse #42

Closed
miha-jenko opened this issue Oct 5, 2023 · 0 comments · Fixed by #43
Closed

--feature_set_focus bad parse #42

miha-jenko opened this issue Oct 5, 2023 · 0 comments · Fixed by #43
Assignees
Labels
bug Something isn't working

Comments

@miha-jenko
Copy link
Collaborator

miha-jenko commented Oct 5, 2023

When using --feature_set_focus an error is raised:

Traceback (most recent call last):
  File "outrank", line 8, in <module>
    sys.exit(main())
  File "python3.8/site-packages/outrank/__main__.py", line 246, in main
    outrank_task_conduct_ranking(args)
  File "python3.8/site-packages/outrank/task_ranking.py", line 102, in outrank_task_conduct_ranking
    ) = estimate_importances_minibatches(**cmd_arguments)
  File "python3.8/site-packages/outrank/core_ranking.py", line 659, in estimate_importances_minibatches
    importances_batch, bounds_storage, coverage_storage, memory_storage = compute_batch_ranking(
  File "python3.8/site-packages/outrank/core_ranking.py", line 491, in compute_batch_ranking
    input_dataframe = input_dataframe[focus_set]
  File "python3.8/site-packages/pandas/core/frame.py", line 3714, in __getitem__
    check_dict_or_set_indexers(key)
  File "python3.8/site-packages/pandas/core/indexing.py", line 2618, in check_dict_or_set_indexers
    raise TypeError(
TypeError: Passing a set as an indexer is not supported. Use a list instead.
@miha-jenko miha-jenko added the bug Something isn't working label Oct 5, 2023
@miha-jenko miha-jenko changed the title --feature_set --feature_set_focus bad parsing Oct 5, 2023
@miha-jenko miha-jenko changed the title --feature_set_focus bad parsing WIP: --feature_set_focus bad parsing Oct 5, 2023
@miha-jenko miha-jenko self-assigned this Oct 5, 2023
@miha-jenko miha-jenko changed the title WIP: --feature_set_focus bad parsing --feature_set_focus bad parse Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant