JuliaStats / Lasso.jl

Lasso/Elastic Net linear and generalized linear models
Other
143 stars 31 forks source link

fixes fit(LassoPath,@formula,df) interface and adds tests for it #30

Closed AsafManela closed 5 years ago

AsafManela commented 5 years ago

Previously the StatsModels.DataFramesRegressionModel was incompatible with Lasso.jl's using a keyword argument for the intercept, so fit(LassoPath, formula(Y~X), df) did not work properly.

fit(LassoModel, @formula(Y~X), df; select=MinAIC()) did not work at all.

This PR fixes that issue and adds tests for both.

coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 162


Totals Coverage Status
Change from base Build 161: 0.2%
Covered Lines: 545
Relevant Lines: 615

💛 - Coveralls
coveralls commented 5 years ago

Pull Request Test Coverage Report for Build 166


Changes Missing Coverage Covered Lines Changed/Added Lines %
src/segselect.jl 10 11 90.91%
<!-- Total: 11 12 91.67% -->
Totals Coverage Status
Change from base Build 161: 0.1%
Covered Lines: 549
Relevant Lines: 620

💛 - Coveralls