Upload files to "/"
All checks were successful
Build and Push Docker Image / test (push) Successful in 54s
Build and Push Docker Image / build_and_push (push) Successful in 2m12s

This commit is contained in:
admin user 2025-03-31 12:36:37 +00:00
parent ead9a776da
commit 1152a701b4
3 changed files with 15 additions and 2 deletions

View File

@ -100,6 +100,7 @@ def __main__(
ownhome: str,
payfrequency: str,
monthsatresidence: str,
state: str,
#thxresponse->
EventType: str,
DigitalIdConfidence: str,
@ -127,6 +128,7 @@ def __main__(
"ownhome" : ownhome,
"payfrequency" : payfrequency,
"monthsatresidence" : monthsatresidence,
"state" : state,
"EventType" : EventType,
"DigitalIdConfidence" : DigitalIdConfidence,
"RiskRating" : RiskRating,
@ -165,8 +167,14 @@ def __main__(
df["application_timestamp"] = df["application_timestamp"].astype(str)
# logger.info("prediction: %.8f", float(df['prediction'].iloc[0]))
result = post_processing(df)
# logger.info("Score: %.0f", float(result["hd_score_m1"]))
logger.info("post_processed_data")
logger.info(result)
# State Check
state_value = combined_df["state"].iloc[0]
if pd.notnull(state_value) and state_value == "ZZ":
result["hd_score_m1"] = 1250
logger.info("post_processed_data after state check")
logger.info(result)
return result

View File

@ -89,6 +89,10 @@
"monthsatresidence": {
"type": ["number", "null"],
"description": "Number of months the applicant has lived at their current residence."
},
"state": {
"type": ["string", "null"],
"description": "State of the current residence."
}
},
"required": []

View File

@ -26,7 +26,8 @@ input_json = {
"payfrequency": None,
"lengthatbank": None,
"educationlevel": None,
"monthsatresidence": None
"monthsatresidence": None,
"state": None
}