Skip to main content

Timeline for Fraud detection database API server

Current License: CC BY-SA 4.0

4 events
when toggle format what by license comment
Aug 31, 2020 at 1:50 comment added GZ0 Adding an unused term parameter to binsFraudRisk() does not seem great to me since it leads to unnecessary dependencies between functions. Had there been one more function that needs, say, 5 parameters, you would need to change definitions of all other functions. A better approach is to construct a kwargs dictionary and call the functions by func(**kwargs).
Aug 30, 2020 at 1:58 comment added Michael Geary This is a great tip and I do this often myself. I would add one thing: creating the action_resolver dictionary should be done outside the function where it is used, so it is only done once. If you create the dictionary every time the userAccess function is called, then it is less efficient than the series of if/elif tests.
Aug 29, 2020 at 3:16 review First posts
Aug 29, 2020 at 6:08
Aug 29, 2020 at 3:11 history answered yedpodtrzitko CC BY-SA 4.0