Removed a lot of unnecessary code, so now we refer to the matching function directly. Now we can set thresholds (and other matching arguments) just like this example:
To put it simply, wrap the function in partial, then set the arguments afterwards. These must be named arguments - "threshold=0.5" will work, but "0.5" will throw a Python exception because it doesn't know which argument this value applies to.
Removed a lot of unnecessary code, so now we refer to the matching function directly. Now we can set thresholds (and other matching arguments) just like this example:
To put it simply, wrap the function in
partial
, then set the arguments afterwards. These must be named arguments - "threshold=0.5" will work, but "0.5" will throw a Python exception because it doesn't know which argument this value applies to.