← Back to companies
[ OK ] Loaded —
[ INFO ]
$ cd
$ ls -lt
01
02
03
04
05
$ ls -lt
01
02
03
04
05
user@intervues:~/$
You are given a labeled dataset of n samples with d real-valued features and a binary target variable. Implement two regularized logistic regression solvers: one using L1 (Lasso) regularization and one using L2 (Ridge) regularization. For each solver you must:
You may use any standard first-order optimization algorithm (coordinate descent, proximal gradient, ISTA/FISTA, etc.) but you must implement the update rules yourself; do not call high-level sklearn-style solvers. Your implementation must handle the non-smooth L1 term explicitly (e.g., via soft-thresholding) and the smooth L2 term via its gradient.
After fitting both models on the same dataset, compare them by reporting: