Skip to content

Commit 58179aa

Browse files
committed
Remove unnecessary lines from create_performance_definition
1 parent 4890699 commit 58179aa

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
@@ -172,19 +172,18 @@ def create_performance_definition(
172172
The performance task definition schema
173173
174174
"""
175-
from .model_repository import ModelRepository
175+
from .model_repository import ModelRepository as mr
176176

177177
if not scoring_required and "_" in table_prefix:
178178
raise ValueError(
179179
"Parameter 'table_prefix' cannot contain underscores."
180-
" Received a value of '%s'."
181-
) % table_prefix
180+
" Received a value of '%s'." % table_prefix
181+
)
182182

183183
max_bins = 10 if max_bins is None else int(max_bins)
184184
if int(max_bins) < 2:
185185
raise ValueError(
186-
"Parameter 'max_bins' must be at least 2. "
187-
"Received a value of '%s'." % max_bins
186+
"Parameter 'max_bins' must be at least 2. Received a value of '%s'." % max_bins
188187
)
189188

190189
if not project and not models:

0 commit comments

Comments
 (0)