Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit de64621

Browse files
DimaPoliuhaJohn Andersen
authored and
John Andersen
committed
model: tensorflow: Renamed init arg in DNNClassifierModelContext
* Renamed DNNClassifierModelContext first init arg from config to features Fixes: #216
1 parent 990ad6a commit de64621

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8383
- JSON source now has `entry_point` decoration
8484
- Strict flag in df.memory is now on by default
8585
- Dynamically created scikit models get config args correctly
86+
- Renamed `DNNClassifierModelContext` first init arg from `config` to `features`
8687
### Removed
8788
- Repo objects are no longer classification specific. Their `classify`,
8889
`classified`, and `classification` methods were removed.

model/tensorflow/dffml_model_tensorflow/dnnc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ class DNNClassifierModelContext(TensorflowModelContext):
107107
columns for real valued, string, and list of real valued features.
108108
"""
109109

110-
def __init__(self, config, parent) -> None:
111-
super().__init__(config, parent)
110+
def __init__(self, features, parent) -> None:
111+
super().__init__(features, parent)
112112
self.cids = self._mkcids(self.parent.config.classifications)
113113
self.classifications = self._classifications(self.cids)
114114
self.model_dir_path = self._model_dir_path()

0 commit comments

Comments
 (0)