PSILOGIT.tools#

Functions

binary_encoding(yt)

Computes the integer encoded by the vector of bits yt.

binary_encoding_inv(binary, n)

Computes the inverse of the function 'binary_encoding'.

compute_log_proba(z, bern)

Computes (up to some constant) the logarithm of the probability of the vector of bits 'z' when the expected value of the response vector is given by 'bern'

compute_proba(z, bern)

Computes (up to some constant) the probability of the vector of bits 'z' when the expected value of the response vector is given by 'bern'

equalset(A, B)

Checks if two sets of integers are equal.

logtemp(x)

Temperature scheme for the SEI-SLR where the temperatures at time t is proportional to 1/log(t)

sigmoid(u)

Sigmoid function.

sigmoid1(u)

Derivative of the sigmoid function.

Classes

LogitRegressionContinuous(*[, ...])