Total Complexity | 1 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | """ |
||
2 | Passive Aggressive 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 passive aggressive classifier. |
||
10 | """ |
||
11 | |||
12 | 1 | from sklearn.linear_model import PassiveAggressiveClassifier |
|
13 | 1 | from .meta_sklearn_clf import MetaSkLearnClf |
|
14 | |||
15 | |||
16 | 1 | class PAClf(MetaSkLearnClf): |
|
|
|||
17 | 1 | def __init__(self, **kwargs): |
|
18 | super().__init__(classifier_instance=PassiveAggressiveClassifier(max_iter=1000, loss='squared_hinge'), **kwargs) |
||
19 |