compound sigmoids: sigmoid-max


sigmoid-max:
    description:
        sigmoid-max[t] ket
        set the coeff x of the ket to max(t, x)

    examples:
        sigmoid-max[4] rank split[" "] |one two three four five six>
            4|one> + 4|two> + 4|three> + 4|four> + 5|five> + 6|six>

        -- set the coeffs to random values with mean 0.5, standard deviation 0.7:
        -- within range [0,1]:
        sigmoid-min[1] sigmoid-max[0] random[0.5, 0.7] split[" "] |one two three four five six>
            0|one> + 0.431141|two> + 0.815684|three> + |four> + |five> + 0.026755|six>

    see also:
        sigmoid-min

Home