Skip to content

Commit

Permalink
small fix and readme change
Browse files Browse the repository at this point in the history
  • Loading branch information
lennybronner committed Oct 23, 2024
1 parent 65942da commit 5643de7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Some model types have specific model parameters that can be included.

| Name | Type | Acceptable values | model |
|-----------------------------------|---------|----------------------------------|-----------------|
| lambda | numeric | regularization constant | all |
| lambda_ | numeric | regularization constant | all |
| turnout_factor_lower | numeric | drop units with < turnout factor | all |
| turnout_factor_upper | numeric | drop units with < turnout factor | all |
| robust | boolean | larger prediction intervals | `nonparametric` |
Expand Down
2 changes: 1 addition & 1 deletion src/elexmodel/models/BootstrapElectionModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, model_settings={}):
"agg_model_hard_threshold", True
) # use sigmoid or hard thresold when calculating agg model
self.district_election = model_settings.get("district_election", False)
self.lambda_ = model_settings.get("lambda", None) # regularization parameter for OLS
self.lambda_ = model_settings.get("lambda_", None) # regularization parameter for OLS

# upper and lower bounds for the quantile regression which define the strata distributions
# these make sure that we can control the worst cases for the distributions in case we
Expand Down

0 comments on commit 5643de7

Please sign in to comment.