ddi-fw 0.0.180__py3-none-any.whl → 0.0.181__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ddi_fw/ml/tensorflow_wrapper.py +2 -1
- {ddi_fw-0.0.180.dist-info → ddi_fw-0.0.181.dist-info}/METADATA +1 -1
- {ddi_fw-0.0.180.dist-info → ddi_fw-0.0.181.dist-info}/RECORD +5 -5
- {ddi_fw-0.0.180.dist-info → ddi_fw-0.0.181.dist-info}/WHEEL +0 -0
- {ddi_fw-0.0.180.dist-info → ddi_fw-0.0.181.dist-info}/top_level.txt +0 -0
ddi_fw/ml/tensorflow_wrapper.py
CHANGED
@@ -28,9 +28,10 @@ class TFModelWrapper(ModelWrapper):
|
|
28
28
|
self.epochs = kwargs.get('epochs', 100)
|
29
29
|
self.use_mlflow = use_mlflow
|
30
30
|
|
31
|
+
# TODO think different settings for num_classes
|
31
32
|
def fit_model(self, X_train, y_train, X_valid, y_valid):
|
32
33
|
self.kwargs['input_shape'] = self.train_data.shape
|
33
|
-
self.num_classes = len(np.unique(y_train))
|
34
|
+
self.num_classes = len(np.unique(y_train, axis=0))
|
34
35
|
model = self.model_func(**self.kwargs)
|
35
36
|
checkpoint = ModelCheckpoint(
|
36
37
|
filepath=f'{self.descriptor}_validation.weights.h5',
|
@@ -77,7 +77,7 @@ ddi_fw/ml/evaluation_helper.py,sha256=2-7CLSgGTqLEk4HkgCVIOt-GxfLAn6SBozJghAtHb5
|
|
77
77
|
ddi_fw/ml/ml_helper.py,sha256=E6ef7f1UnQl6JBUdGDbbbI4FIS-904VGypT7tI0a598,8545
|
78
78
|
ddi_fw/ml/model_wrapper.py,sha256=kabPXuo7S8tGkp9a00V04n4rXDmv7dD8wYGMjotISRc,1050
|
79
79
|
ddi_fw/ml/pytorch_wrapper.py,sha256=pe6UsjP2XeTgLxDnIUiodoyhJTGCxV27wD4Cjxysu2Q,8553
|
80
|
-
ddi_fw/ml/tensorflow_wrapper.py,sha256=
|
80
|
+
ddi_fw/ml/tensorflow_wrapper.py,sha256=9WhjL00-WSzE0HJzr_T38IrD3ipCKGrrkeBGEEewUKw,10920
|
81
81
|
ddi_fw/ner/__init__.py,sha256=JwhGXrepomxPSsGsg2b_xPRC72AjvxOIn2CW5Mvscn0,26
|
82
82
|
ddi_fw/ner/mmlrestclient.py,sha256=NZta7m2Qm6I_qtVguMZhqtAUjVBmmXn0-TMnsNp0jpg,6859
|
83
83
|
ddi_fw/ner/ner.py,sha256=FHyyX53Xwpdw8Hec261dyN88yD7Z9LmJua2mIrQLguI,17967
|
@@ -98,7 +98,7 @@ ddi_fw/utils/zip_helper.py,sha256=YRZA4tKZVBJwGQM0_WK6L-y5MoqkKoC-nXuuHK6CU9I,55
|
|
98
98
|
ddi_fw/vectorization/__init__.py,sha256=LcJOpLVoLvHPDw9phGFlUQGeNcST_zKV-Oi1Pm5h_nE,110
|
99
99
|
ddi_fw/vectorization/feature_vector_generation.py,sha256=Z1A_DOBqDFPqLN4YB-3oYlOQWJK-X6Oes6UFjpzR47Q,4760
|
100
100
|
ddi_fw/vectorization/idf_helper.py,sha256=_Gd1dtDSLaw8o-o0JugzSKMt9FpeXewTh4wGEaUd4VQ,2571
|
101
|
-
ddi_fw-0.0.
|
102
|
-
ddi_fw-0.0.
|
103
|
-
ddi_fw-0.0.
|
104
|
-
ddi_fw-0.0.
|
101
|
+
ddi_fw-0.0.181.dist-info/METADATA,sha256=dNVh9x2lxjHNUWnNkC6-cYm19JxkHNKfAwiYWfvVsro,2542
|
102
|
+
ddi_fw-0.0.181.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
103
|
+
ddi_fw-0.0.181.dist-info/top_level.txt,sha256=PMwHICFZTZtcpzQNPV4UQnfNXYIeLR_Ste-Wfc1h810,7
|
104
|
+
ddi_fw-0.0.181.dist-info/RECORD,,
|
File without changes
|
File without changes
|