<s> """<STR_LIT>""" <EOL> print ( __doc__ ) <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> from sklearn import linear_model <EOL> X = <NUM_LIT:1.> / ( np . arange ( <NUM_LIT:1> , <NUM_LIT:11> ) + np . arange ( <NUM_LIT:0> , <NUM_LIT:10> ) [ : , np . newaxis ] ) <EOL> y = np . ones ( <NUM_LIT:10> ) <EOL> n_alphas = <NUM_LIT:200> <EOL> alphas = np . logspace ( - <NUM_LIT:10> , - <NUM_LIT:2> , n_alphas ) <EOL> clf = linear_model . Ridge ( fit_intercept = False ) <EOL> coefs = [ ] <EOL> for a in alphas : <EOL> clf . set_params ( alpha = a ) <EOL> clf . fit ( X , y ) <EOL> coefs . append ( clf . coef_ ) <EOL> ax = plt . gca ( ) <EOL> ax . plot ( alphas , coefs ) <EOL> ax . set_xscale ( '<STR_LIT>' ) <EOL> ax . set_xlim ( ax . get_xlim ( ) [ : : - <NUM_LIT:1> ] ) <EOL> plt . xlabel ( '<STR_LIT>' ) <EOL> plt . ylabel ( '<STR_LIT>' ) <EOL> plt . title ( '<STR_LIT>' ) <EOL> plt . axis ( '<STR_LIT>' ) <EOL> plt . show ( ) </s>
