python - glmnet.ElastiNet:lambda_path argument -


i learning from:

https://github.com/jwarmenhoven/islr-python/blob/master/notebooks/chapter%206.ipynb

and have issues following code:

grid = 10**np.linspace(10,-2,100)  ridge3 = gln.elasticnet(alpha=0, lambda_path=grid) ridge3.fit(x, y) 

what lambda_path argument mean? using python.

what lambda_path argument mean? using python.

here lambda has nothing python.

in python, lambda function, comes lambda calculus.

in lasso , elastic-net regularization, lambda regularization penalty coefficient. in other words, number. , lambda_path sequence of numbers. in code example given, sequences generated automatically. , ridge3.fit performance training every number of lambda sequence.

p.s. in mathematics, keep formula short humans can write formula quickly, mathematics uses single letter variable name lot without namespace prefix. however, there not many letters, conflicts occur. here both lambda calculus , regularization choose greek letter λ, may cause confusion.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -