clab / clab/dynet

Feature request: An option to return a sorted top-k.

Open
#1,358 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
C++
Stars
3.4k
Forks
701
PR merge metrics
No merged PRs in 30d

Description

https://github.com/clab/dynet/pull/1328 currently returns unsorted top-k values and the corresponding indices.
It'd be great if there is an option to return sorted top-k values and the indices.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading pull request 1328, which introduced the unsorted top-k values and corresponding indices, and locate the implementation and any tests it added. The work is complete when an option returns top-k values in sorted order while keeping each index paired with its value; update or add tests for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.