File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ def plqERM_Ridge_path_sol(
4646
4747
4848 eps : float, default=1e-3
49- Defines the range of regularization values when `Cs` is not provided. Specifically, the smallest
50- regularization value will be approximately ` eps` times the largest .
49+ Defines the length of the regularization path when `Cs` is not provided.
50+ The values of `C` will range from `10^log10( eps)` to `10^-log10(eps)` .
5151
5252 n_Cs : int, default=100
5353 Number of regularization values to evaluate if `Cs` is not provided.
@@ -125,7 +125,8 @@ def plqERM_Ridge_path_sol(
125125 n_samples , n_features = X .shape
126126
127127 if Cs is None :
128- Cs = np .logspace (np .log10 (eps ), 3 , n_Cs )
128+ log_eps = np .log10 (eps )
129+ Cs = np .logspace (log_eps , - log_eps , n_Cs )
129130
130131 # Sort Cs to ensure computation starts from the smallest value
131132 Cs = np .sort (Cs )
You can’t perform that action at this time.
0 commit comments