Skip to content

Commit d99239a

Browse files
committed
Remove unnecessary lines from create_performance_definition
1 parent f5f2f79 commit d99239a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/sasctl/_services/model_management.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,19 +169,18 @@ def create_performance_definition(
169169
The performance task definition schema
170170
171171
"""
172-
from .model_repository import ModelRepository
172+
from .model_repository import ModelRepository as mr
173173

174174
if not scoring_required and "_" in table_prefix:
175175
raise ValueError(
176176
"Parameter 'table_prefix' cannot contain underscores."
177-
" Received a value of '%s'."
178-
) % table_prefix
177+
" Received a value of '%s'." % table_prefix
178+
)
179179

180180
max_bins = 10 if max_bins is None else int(max_bins)
181181
if int(max_bins) < 2:
182182
raise ValueError(
183-
"Parameter 'max_bins' must be at least 2. "
184-
"Received a value of '%s'." % max_bins
183+
"Parameter 'max_bins' must be at least 2. Received a value of '%s'." % max_bins
185184
)
186185

187186
if not project and not models:

0 commit comments

Comments
 (0)