|
@@ -11,7 +11,7 @@ import scorecardpy as sc
|
|
from sklearn.linear_model import LogisticRegression
|
|
from sklearn.linear_model import LogisticRegression
|
|
|
|
|
|
from commom import f_df_to_image
|
|
from commom import f_df_to_image
|
|
-from entitys import TrainConfigEntity, DataPreparedEntity, MetricFucEntity, DataSplitEntity
|
|
|
|
|
|
+from entitys import DataPreparedEntity, MetricFucEntity, DataSplitEntity
|
|
from feature import f_calcu_model_ks, f_get_model_score_bin, f_calcu_model_psi
|
|
from feature import f_calcu_model_ks, f_get_model_score_bin, f_calcu_model_psi
|
|
from init import f_get_save_path
|
|
from init import f_get_save_path
|
|
from .model_base import ModelBase
|
|
from .model_base import ModelBase
|
|
@@ -24,7 +24,6 @@ class ModelLr(ModelBase):
|
|
self._template_path = "./template/模型开发报告模板_lr.docx"
|
|
self._template_path = "./template/模型开发报告模板_lr.docx"
|
|
self.lr = LogisticRegression(penalty='l1', C=0.9, solver='saga', n_jobs=-1)
|
|
self.lr = LogisticRegression(penalty='l1', C=0.9, solver='saga', n_jobs=-1)
|
|
|
|
|
|
- @property
|
|
|
|
def get_template_path(self):
|
|
def get_template_path(self):
|
|
return self._template_path
|
|
return self._template_path
|
|
|
|
|