Skip to content

Commit

Permalink
Renamed BayesianSparseRegression to SparseBayesianRegression
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelbue committed Dec 13, 2023
1 parent acab720 commit 66112bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions pysindy/optimizers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@
"FROLS",
"SINDyPI",
"MIOSR",
"SBR",
]
4 changes: 2 additions & 2 deletions pysindy/optimizers/sbr.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(

def _reduce(self, x, y):
# set up a sparse regression and sample.
regression = BayesianSparseRegression(self.tau_0, self.nu, self.s, self.lamb)
regression = SparseBayesianRegression(self.tau_0, self.nu, self.s, self.lamb)
self.mcmc = regression.fit(x, y, **self.mcmc_kwargs)

# get the variable names and the mean values from the samples.
Expand All @@ -55,7 +55,7 @@ def _reduce(self, x, y):
self.coef_ = beta


class BayesianSparseRegression:
class SparseBayesianRegression:
def __init__(self, tau_0=0.1, nu=4, s=2, lamb=1):
# set hyperparameters
self.tau_0 = tau_0
Expand Down

0 comments on commit 66112bb

Please sign in to comment.