예제 #1
0
 def sort_items(items: numpy.ndarray) -> numpy.ndarray:
     maxinfo = irt.max_info_hpc(items)
     return irt.inf_hpc(maxinfo, items).argsort()
예제 #2
0
 def sort_items(items: numpy.ndarray) -> numpy.ndarray:
     maxinfo = irt.max_info_hpc(items)
     return numpy.lexsort((irt.inf_hpc(maxinfo, items), maxinfo))
예제 #3
0
파일: cdi.py 프로젝트: JunHo01/e-Babylab
def sort_items(item_params):
    """
    Returns ndarray of indices of items sorted by maximum item information.
    """
    return (-inf_hpc(max_info_hpc(item_params), item_params)).argsort()