Ejemplo n.º 1
0
def leadingones5(y: np.ndarray) -> float:
    """Softmax discretization of leadingones with 5 possibles values.

    This multiplies the dimension by 5."""
    return _leadingones(discretization.softmax_discretization(y, 5))
Ejemplo n.º 2
0
def leadingones(y: np.ndarray) -> float:
    """Softmax discretization of leadingones (This multiplies the dimension by 2)."""
    return _leadingones(discretization.softmax_discretization(y))
Ejemplo n.º 3
0
def jump5(y: np.ndarray) -> float:
    """Softmax discretization of jump with 5 possibles values.

    This multiplies the dimension by 5."""
    return _jump(discretization.softmax_discretization(y, 5))
Ejemplo n.º 4
0
def jump(y: np.ndarray) -> float:
    """Softmax discretization of jump (This multiplies the dimension by 2)."""
    return _jump(discretization.softmax_discretization(y))