| Total Complexity | 1 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | """ |
||
| 2 | Lasso Classifier |
||
| 3 | |||
| 4 | .................................................................................................... |
||
| 5 | MIT License |
||
| 6 | Copyright (c) 2021-2023 AUT Iran, Mohammad H Forouhesh |
||
| 7 | Copyright (c) 2021-2022 MetoData.ai, Mohammad H Forouhesh |
||
| 8 | .................................................................................................... |
||
| 9 | This module encapsulate the Lasso classifier. |
||
| 10 | """ |
||
| 11 | |||
| 12 | 1 | from sklearn.linear_model import SGDClassifier |
|
| 13 | 1 | from .meta_sklearn_clf import MetaSkLearnClf |
|
| 14 | |||
| 15 | |||
| 16 | 1 | class LassoClf(MetaSkLearnClf): |
|
|
|
|||
| 17 | 1 | def __init__(self, **kwargs): |
|
| 18 | super().__init__(classifier_instance=SGDClassifier(loss='modified_huber', penalty='l1'), **kwargs) |
||
| 19 |