Skip to content

Commit 6471c90

Browse files
authored
Generic input interface for Algo base class (#5602)
Making Algo base to have more generic inputs. Signed-off-by: myron <amyronenko@nvidia.com>
1 parent 070c97a commit 6471c90

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

monai/auto3dseg/algo_gen.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
# See the License for the specific language governing permissions and
1010
# limitations under the License.
1111

12-
from typing import Optional
1312

1413
from monai.transforms import Randomizable
1514

@@ -24,23 +23,12 @@ def set_data_stats(self, *args, **kwargs):
2423
"""Provide dataset (and summaries) so that the model creation can depend on the input datasets."""
2524
pass
2625

27-
def train(self, params: dict):
28-
"""
29-
Read training/validation data and output a model.
30-
31-
Args:
32-
params: key-value pairs of input parameters for the training pipeline.
33-
"""
26+
def train(self, *args, **kwargs):
27+
"""Read training/validation data and output a model."""
3428
pass
3529

36-
def predict(self, predict_files: list, predict_params: Optional[dict] = None):
37-
"""
38-
Read test data and output model predictions.
39-
40-
Args:
41-
predict_files: list of files for the predicting pipeline.
42-
predict_params: key-value pairs of input parameters for the predicting pipeline.
43-
"""
30+
def predict(self, *args, **kwargs):
31+
"""Read test data and output model predictions."""
4432
pass
4533

4634
def get_score(self, *args, **kwargs):

0 commit comments

Comments
 (0)