Upload files to "/"
This commit is contained in:
parent
ead9a776da
commit
1152a701b4
10
block.py
10
block.py
@ -100,6 +100,7 @@ def __main__(
|
|||||||
ownhome: str,
|
ownhome: str,
|
||||||
payfrequency: str,
|
payfrequency: str,
|
||||||
monthsatresidence: str,
|
monthsatresidence: str,
|
||||||
|
state: str,
|
||||||
#thxresponse->
|
#thxresponse->
|
||||||
EventType: str,
|
EventType: str,
|
||||||
DigitalIdConfidence: str,
|
DigitalIdConfidence: str,
|
||||||
@ -127,6 +128,7 @@ def __main__(
|
|||||||
"ownhome" : ownhome,
|
"ownhome" : ownhome,
|
||||||
"payfrequency" : payfrequency,
|
"payfrequency" : payfrequency,
|
||||||
"monthsatresidence" : monthsatresidence,
|
"monthsatresidence" : monthsatresidence,
|
||||||
|
"state" : state,
|
||||||
"EventType" : EventType,
|
"EventType" : EventType,
|
||||||
"DigitalIdConfidence" : DigitalIdConfidence,
|
"DigitalIdConfidence" : DigitalIdConfidence,
|
||||||
"RiskRating" : RiskRating,
|
"RiskRating" : RiskRating,
|
||||||
@ -165,8 +167,14 @@ def __main__(
|
|||||||
df["application_timestamp"] = df["application_timestamp"].astype(str)
|
df["application_timestamp"] = df["application_timestamp"].astype(str)
|
||||||
# logger.info("prediction: %.8f", float(df['prediction'].iloc[0]))
|
# logger.info("prediction: %.8f", float(df['prediction'].iloc[0]))
|
||||||
result = post_processing(df)
|
result = post_processing(df)
|
||||||
# logger.info("Score: %.0f", float(result["hd_score_m1"]))
|
logger.info("post_processed_data")
|
||||||
logger.info(result)
|
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
|
return result
|
||||||
|
|
||||||
|
|||||||
@ -89,6 +89,10 @@
|
|||||||
"monthsatresidence": {
|
"monthsatresidence": {
|
||||||
"type": ["number", "null"],
|
"type": ["number", "null"],
|
||||||
"description": "Number of months the applicant has lived at their current residence."
|
"description": "Number of months the applicant has lived at their current residence."
|
||||||
|
},
|
||||||
|
"state": {
|
||||||
|
"type": ["string", "null"],
|
||||||
|
"description": "State of the current residence."
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": []
|
"required": []
|
||||||
|
|||||||
@ -26,7 +26,8 @@ input_json = {
|
|||||||
"payfrequency": None,
|
"payfrequency": None,
|
||||||
"lengthatbank": None,
|
"lengthatbank": None,
|
||||||
"educationlevel": None,
|
"educationlevel": None,
|
||||||
"monthsatresidence": None
|
"monthsatresidence": None,
|
||||||
|
"state": None
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user