Jayabalambika commited on
Commit
6969d48
1 Parent(s): a5bbc1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -14,9 +14,10 @@ def load_dataset():
14
  return X,X_sp,y
15
 
16
  def compare_lasso_dense():
17
- alpha = 1
18
- sparse_lasso = Lasso(alpha=alpha, fit_intercept=False, max_iter=1000)
19
- dense_lasso = Lasso(alpha=alpha, fit_intercept=False, max_iter=1000)
 
20
 
21
  t0 = time()
22
  sparse_lasso.fit(X_sp, y)
 
14
  return X,X_sp,y
15
 
16
  def compare_lasso_dense():
17
+ alpha_dense = 1
18
+ alpha_sparse = 0.1
19
+ sparse_lasso = Lasso(alpha= alpha_sparse, fit_intercept=False, max_iter=1000)
20
+ dense_lasso = Lasso(alpha=alpha_dense, fit_intercept=False, max_iter=1000)
21
 
22
  t0 = time()
23
  sparse_lasso.fit(X_sp, y)