You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Congratulation!. This is the best work i have found for fraud detection and i hope you keep up.
I have noticed the function is_night is not working as expected due to the timestamp format.
In the last rows, you clearly see tx with timestamp around 23 not flagged with 1.
This is a possible solution to resolve the issue.
def is_night(tx_datetime):
# Get the hour of the transaction
tx_hour = tx_datetime.hour
# Binary value: opposite of day ( day is hour between 6 and 18)
is_night = not(tx_hour >= 6 and tx_hour <= 18)
return int(is_night)
The text was updated successfully, but these errors were encountered:
Congratulation!. This is the best work i have found for fraud detection and i hope you keep up.

I have noticed the function is_night is not working as expected due to the timestamp format.
In the last rows, you clearly see tx with timestamp around 23 not flagged with 1.
This is a possible solution to resolve the issue.
The text was updated successfully, but these errors were encountered: