Updates a previously registered custom loss function with a new function implementation.
REQUIRED | KEY | TYPE | DESCRIPTION |
---|---|---|---|
Yes | name | str | Name of the registered custom loss. |
Yes | lossFunctionName | str | Name of the function whose full source code is passed in loss_function_source_code. |
Yes | lossFunctionSourceCode | str | Python source code string of the function. |
KEY | TYPE | DESCRIPTION | |||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
success | Boolean | true if the call succeeded, false if there was an error | |||||||||||||||||||||||||||||||||||||||||||||||||||
result | CustomLossFunction |
|
TYPE | WHEN |
---|---|
InvalidParameterError | If either the loss function name or type or the passed function is invalid/incompatible. |
DataNotFoundError | If a loss function with the given name is not found in the organization. |
Coming Soon!