Skip to content

← deep_learning package

ApplyIfFiniteStep

A modifier of the step node that is wired into it, which prevents NaN or infinite or inf updates from going through unless the max_consecutive_errors has been exceeded, in which case the update goes through.

Note this is not simply chained after another step using the ChainedStep node, but rather it is a modifier of the step node that is wired into it. This should usually not be used in a chain since it may cause division by zero errors in subsequent steps (depending on the step type). Version 0.2.0

Ports/Properties

gradients

Gradients to be transformed.

verbose name
Gradients
default value
None
port type
DataPort
value type
object (can be None)
data direction
INOUT

weights

Optional current weights.

verbose name
Weights
default value
None
port type
DataPort
value type
object (can be None)
data direction
IN

state

Explicit state of the node.

verbose name
State
default value
None
port type
DataPort
value type
object (can be None)
data direction
INOUT

modify_step

Step to modify.

verbose name
Modify Step
default value
None
port type
DataPort
value type
BaseNode (can be None)
data direction
IN

max_consecutive_errors

Maximum number of consecutive errors to tolerate before letting the update go through.

verbose name
Max Consecutive Errors
default value
2
port type
IntPort
value type
int (can be None)

set_breakpoint

Set a breakpoint on this node. If this is enabled, your debugger (if one is attached) will trigger a breakpoint.

verbose name
Set Breakpoint (Debug Only)
default value
False
port type
BoolPort
value type
bool (can be None)

metadata

User-definable meta-data associated with the node. Usually reserved for technical purposes.

verbose name
Metadata
default value
{}
port type
DictPort
value type
dict (can be None)