From 180daa630ac7bc183ef6d21b9d19a55b5f9606cf Mon Sep 17 00:00:00 2001 From: Hussein Hazimeh Date: Tue, 14 Apr 2020 22:31:12 -0400 Subject: [PATCH 1/3] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1272ed2..f7764b7 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ sols is a list of solutions, each corresponding to a different lambda_0. Below we inspect the solution with index 4. The estimated coefficients vector "b_estimated" and the intercept term can be accessed as follows: """ -b_estimated = sol[4]["B"] # a numpy array. -intercept = sol[4]["B0"] +b_estimated = sols[4]["B"] # a numpy array. +intercept = sols[4]["B0"] # To check the nonzero indices in b_estimated: print("Nonzero indices in b_estimated: ", np.nonzero(b_estimated)[0]) From c3a8c7b4645d75e1f6c7016515c2d228267a7b92 Mon Sep 17 00:00:00 2001 From: Hussein Hazimeh Date: Tue, 14 Apr 2020 22:32:47 -0400 Subject: [PATCH 2/3] Update numpy version --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index aacea6c..f12affc 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ def readme(): author_email="alikassemsaab@gmail.com", url='https://github.com/alisaab/l0bnb', download_url="https://github.com/alisaab/l0bnb/archive/0.0.4.tar.gz", - install_requires=["numpy >= 1.18.2", "scipy >= 1.4.1", "numba >= 0.48.0", + install_requires=["numpy >= 1.18.1", "scipy >= 1.4.1", "numba >= 0.48.0", "matplotlib >= 3.2.1"], version="0.0.4", packages=find_packages(), From d90f70a58e3c4a7123c5b6b0f8067e58d989380b Mon Sep 17 00:00:00 2001 From: Hussein Hazimeh Date: Tue, 14 Apr 2020 22:36:22 -0400 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f7764b7..986f048 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ where the L0 norm counts the number of nonzeros in the coefficients vector B. He ## Installation The toolkit is implemented in Python 3. To install it, run the following command: ```bash -pip install L0BnB +pip install l0bnb ``` ## A Quick Start in Python