.. _f-logreg: module ``ml.logreg`` ==================== Short summary +++++++++++++ module ``mlstatpy.ml.logreg`` Helpers on logistic regression. :githublink:`%|py|5` Functions +++++++++ +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | function | truncated documentation | +==========================================================+=====================================================================================================================================================+ | :func:`criteria ` | Computes Gini, information gain, likelihood on a dataset with two features assuming the first coordinates is used to ... | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`criteria2 ` | Computes Gini, information gain, likelihood on a dataset with two features assuming the first coordinates is used to ... | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`likelihood ` | Computes :math:`\sum_i y_i f(\theta (x_i - x_0)) + (1 - y_i) (1 - f(\theta (x_i - x_0)))` where :math:`f(x_i)` is :math:`\frac{1}{1 + e^{-x}}`. ... | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`logistic ` | Computes :math:`\frac{1}{1 + e^{-x}}`. | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`plog2 ` | Computes :math:`x \ln_2 x`. | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`plot_ds ` | Plots a dataset, *X* is a dataset with two features, *y* contains the binary labels. | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ | :func:`random_set_1d ` | Builds a random dataset as describes in example :ref:`l-example-logistic-decision`. | +----------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------+ Documentation +++++++++++++ .. automodule:: mlstatpy.ml.logreg :members: :special-members: __init__ :show-inheritance: