Skip to content

Commit

Permalink
Cap StatsModels at v0.5 and require GLM v1.2 (#33)
Browse files Browse the repository at this point in the history
* fix deprecation warning for convTol renamed to rtol

* changed [compat] to "0.7, 1"

* capped StatsModels version at 0.5

* bumped version to 0.4.1

* require GLM v1.2+ for rtol argument of fit!
  • Loading branch information
AsafManela authored Jun 25, 2019
1 parent a2c42df commit d3c02c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "Lasso"
uuid = "b4fcebef-c861-5a0f-a7e2-ba9dc32b180a"
version = "0.4.0"
version = "0.4.1"

[deps]
DSP = "717857b8-e6f2-59f4-9121-6e50c889abd2"
Expand All @@ -12,9 +12,12 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"

[compat]
julia = "≥ 0.7.0"
GLM = "1.2"
StatsModels = "0.4, 0.5"
julia = "0.7, 1"

[extras]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Expand Down
2 changes: 1 addition & 1 deletion src/Lasso.jl
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ function build_model(X::AbstractMatrix{T}, y::FPVector, d::UnivariateDistributio
# Fit to find null deviance
# Maybe we should reuse this GlmResp object?
nullmodel = fit(GeneralizedLinearModel, nullX(X, intercept, ω), y, d, l;
wts=wts, offset=offset, convTol=irls_tol, dofit=dofit)
wts=wts, offset=offset, rtol=irls_tol, dofit=dofit)
nulldev = deviance(nullmodel)
nullb0 = intercept ? coef(nullmodel)[1] : zero(T)

Expand Down

2 comments on commit d3c02c5

@AsafManela
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/1575

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v0.4.1 -m "<description of version>" d3c02c5ebd6b285d607db67f14b15edfe1e7b85d
git push origin v0.4.1

Please sign in to comment.