<commit_before>import numpy as np
from . import _liblinear
from .svm import BaseLibLinear

class LogisticRegression(BaseLibLinear):
    """
    Logistic Regression.

    Implements L1 and L2 regularized logistic regression.

    Parameters
    ----------
    X : array-like, shape = [n_samples, n_features]
        Training vector, where n_samples in the number of samples and
        n_features is the number of features.
    Y : array, shape = [n_samples]
        Target vector relative to X

    penalty : string, 'l1' or 'l2'
        Used to specify the norm used in the penalization

    C : float
        Specifies the strength of the regularization. The smaller it is<commit_msg>ENH: Make sure that the logistic regression does inherit from ClassifierMixin.<commit_after>import numpy as np
from . import _liblinear

from .base import ClassifierMixin
from .svm import BaseLibLinear

class LogisticRegression(BaseLibLinear, ClassifierMixin):
    """
    Logistic Regression.

    Implements L1 and L2 regularized logistic regression.

    Parameters
    ----------
    X : array-like, shape = [n_samples, n_features]
        Training vector, where n_samples in the number of samples and
        n_features is the number of features.
    Y : array, shape = [n_samples]
        Target vector relative to X

    penalty : string, 'l1' or 'l2'
        Used to specify the norm used in the penalization

    C : float
        Specifies the strength of the regularization. The smaller it is
{'fraction_non_alphanumeric': 0.0631296171927468, 'fraction_numerical': 0.005372733378106112, 'mean_word_length': 2.8303341902313623, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7525684', 'n_tokens_mistral': 409, 'n_tokens_neox': 394, 'n_words': 172}