File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( http://keepachangelog.com/en/1.0.0/ )
6
6
and this project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) .
7
7
8
- ## [ Unreleased ]
8
+ ## [ 0.2.0a1 ]
9
9
10
10
### Fixed
11
11
12
- * Fail early if ` custom_model_code ` or ` dependent_dir ` are ` None ` when model type is ` ModelType.custom ` .
12
+ * Fail early if ` custom_model_code ` , ` dependent_dir ` or ` requirements_txt_file ` are ` None ` when model type is ` ModelType.custom ` .
13
+ * Fail early if ` model ` is not ` None ` when model type is ` ModelType.custom ` .
13
14
14
15
## [ 0.2.0a0]
15
16
Original file line number Diff line number Diff line change @@ -317,6 +317,10 @@ def add_model(
317
317
assert (
318
318
dependent_dir is not None
319
319
), "Must specify dependent_dir when using ModelType.custom"
320
+ assert (
321
+ requirements_txt_file is not None
322
+ ), "Must specify requirements_txt_file when using ModelType.custom"
323
+ assert model is None , "model must be None when using ModelType.custom"
320
324
if task_type in [TaskType .TabularClassification , TaskType .TabularRegression ]:
321
325
required_fields = [
322
326
(feature_names , "feature_names" ),
You can’t perform that action at this time.
0 commit comments