Skip to content

Commit

Permalink
[MOD] - removed normalize keyword in GPC.py for LarsLasso model
Browse files Browse the repository at this point in the history
  • Loading branch information
lpossner committed May 21, 2024
1 parent cf4d477 commit 27cd9d0
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 25 deletions.
45 changes: 21 additions & 24 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,16 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
# python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
# - python-version: "3.9"
# cibw-string: "cp39-*"
- python-version: "3.9"
cibw-string: "cp39-*"
- python-version: "3.10"
cibw-string: "cp310-*"
# - python-version: "3.11"
# cibw-string: "cp311-*"
# - python-version: "3.12"
# cibw-string: "cp312-*"
- python-version: "3.11"
cibw-string: "cp311-*"
- python-version: "3.12"
cibw-string: "cp312-*"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -58,17 +57,16 @@ jobs:
runs-on: windows-2019
strategy:
matrix:
# python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
# - python-version: "3.9"
# cibw-string: "cp39-*"
- python-version: "3.9"
cibw-string: "cp39-*"
- python-version: "3.10"
cibw-string: "cp310-*"
# - python-version: "3.11"
# cibw-string: "cp311-*"
# - python-version: "3.12"
# cibw-string: "cp312-*"
- python-version: "3.11"
cibw-string: "cp311-*"
- python-version: "3.12"
cibw-string: "cp312-*"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -104,17 +102,16 @@ jobs:
runs-on: macos-11
strategy:
matrix:
# python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
include:
# - python-version: "3.9"
# cibw-string: "cp39-*"
- python-version: "3.9"
cibw-string: "cp39-*"
- python-version: "3.10"
cibw-string: "cp310-*"
# - python-version: "3.11"
# cibw-string: "cp311-*"
# - python-version: "3.12"
# cibw-string: "cp312-*"
- python-version: "3.11"
cibw-string: "cp311-*"
- python-version: "3.12"
cibw-string: "cp312-*"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
3 changes: 2 additions & 1 deletion pygpc/GPC.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ def solve(self, results, gradient_results=None, solver=None, settings=None, matr
# reg.fit(matrix_norm, results_complete)
# coeffs = reg.coef_

reg = linear_model.LassoLars(alpha=settings["alpha"], fit_intercept=False, normalize=False)
# reg = linear_model.LassoLars(alpha=settings["alpha"], fit_intercept=False, normalize=False)
reg = linear_model.LassoLars(alpha=settings["alpha"], fit_intercept=False)
reg.fit(matrix, results_complete)
coeffs = reg.coef_

Expand Down

0 comments on commit 27cd9d0

Please sign in to comment.