Skip to content

Commit

Permalink
Black reformatting (second attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
smlindauer committed Jan 31, 2024
1 parent 426282b commit 73d3d43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions src/sasctl/_services/model_repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,9 @@ def create_model(

model["scoreCodeType"] = score_code_type or model.get("scoreCodeType")
model["trainTable"] = training_table or model.get("trainTable")
model[
"classificationEventProbabilityVariableName"
] = event_prob_variable or model.get(
"classificationEventProbabilityVariableName"
model["classificationEventProbabilityVariableName"] = (
event_prob_variable
or model.get("classificationEventProbabilityVariableName")
)
model["classificationTargetEventValue"] = event_target_value or model.get(
"classificationTargetEventValue"
Expand Down
6 changes: 3 additions & 3 deletions src/sasctl/pzmm/write_json_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,9 +883,9 @@ def assess_model_bias(
# run assessBias, if levels=None then assessBias treats the input like a regression problem
tables = conn.fairaitools.assessbias(
modelTableType="None",
predictedVariables=pred_values
if pred_values is not None
else prob_values,
predictedVariables=(
pred_values if pred_values is not None else prob_values
),
response=actual_values,
responseLevels=levels,
sensitiveVariable=x,
Expand Down

0 comments on commit 73d3d43

Please sign in to comment.