Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ada_logistic_reg/adaptive_logistic_regression.r
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ fit <- glmnet(
as.matrix(y),
lambda = 0,
family = "binomial",
standardize=FALSE,
)
coef <- coef(fit, s=fit$lmabda.min)
coef <- as.matrix(coef)[-1, ]
Expand All @@ -53,7 +52,6 @@ fit <- glmnet(
alpha = 1,
penalty.factor = penalty_factor,
family = "binomial",
standardize=FALSE,
)

# bic
Expand Down
6 changes: 3 additions & 3 deletions example/predict_adaptive_logistic_regression.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"</svg>\n"
],
"text/plain": [
"<graphviz.graphs.Digraph at 0x7f6f2828a970>"
"<graphviz.graphs.Digraph at 0x7f2c2c323070>"
]
},
"execution_count": 2,
Expand Down Expand Up @@ -249,7 +249,7 @@
{
"data": {
"text/plain": [
"array([[ 0. , 52.178, -0.476, 6.476, -7.209]])"
"array([[ 0.411, 76.1 , -0.762, 9.445, -10.513]])"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -282,7 +282,7 @@
{
"data": {
"text/plain": [
"array([[ 0. , 75.46, 0. , 9.37, -10.45]])"
"array([[ 0. , 62.559, 0. , 7.75 , -8.639]])"
]
},
"execution_count": 5,
Expand Down