<commit_before>"""
Module contains a solver which finds x which minimizes ||y - Ax||_2 for a given A and y.
The solver uses Kernel Recurive Least Squares algorithm with linear kenrel. |br|

Take a look on  'L2solve_aldkrls_ex0.py' in *examples* directory for examples of using the module.

*Author*:
    <NAME>, Aalborg University, Denmark. <<EMAIL>>

*Version*:
    1.0  | 2-DEC-2014 : * Initial version. |br|

*License*:
    BSD 2-Clause

"""

from __future__ import division
import numpy as np

# =====================================================================
# For a given A and y, find x which minimizes ||y - Ax||_2
# =====================================================================
def main(mA, vY):
    """
    Main function of the module. The function finds x which minimizes ||y - Ax||_2 for a given A and y |br|

    Args:
        mA (numpy array): Matrix A from the above equation

        vY (numpy array): Vector y from the above equation

    Returns:
        vX (numpy array): Vector x which solves the above problem

    """<commit_msg>Versioning info added to L2 solver (with krls)<commit_after>"""
Module contains a solver which finds x which minimizes ||y - Ax||_2 for a given A and y.
The solver uses Kernel Recurive Least Squares algorithm with linear kenrel. |br|

Take a look on  'L2solve_aldkrls_ex0.py' in *examples* directory for examples of using the module.

*Author*:
    <NAME>, Aalborg University, Denmark. <<EMAIL>>

*Version*:
    1.0  | 2-DEC-2014 : * Initial version. |br|
    1.2  | 4-DEC-2014 : * KRLS with linear kernel in integrated into the module. |br|


*License*:
    BSD 2-Clause

"""

from __future__ import division
import numpy as np

# =====================================================================
# For a given A and y, find x which minimizes ||y - Ax||_2
# =====================================================================
def main(mA, vY):
    """
    Main function of the module. The function finds x which minimizes ||y - Ax||_2 for a given A and y |br|

    Args:
        mA (numpy array): Matrix A from the above equation

        vY (numpy array): Vector y from the above equation

    Returns:
        vX (numpy array): Vector x which solves the above problem

    """
{'fraction_non_alphanumeric': 0.20755555555555555, 'fraction_numerical': 0.015111111111111112, 'mean_word_length': 3.6032719836400817, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3200833', 'n_tokens_mistral': 685, 'n_tokens_neox': 626, 'n_words': 283}