11.2. Linear
11.2.1. Linear API
Note
You may see some or no content at all on this page that documents the API. If that is the case please build the documentation locally (Docker Build), or view this documentation using a “autodoc”-ed version of this documentation (see: Documentation Variations).
- class fhez.nn.activation.linear.Linear(m=array([1]), c=array([0]), optimiser={'_alpha': 0.001, '_epsilon': 1e-08, '_beta_2': 0.999, '_beta_1': 0.9})
Linear activation function computational graph abstraction.
- backward(gradient)
Get gradients of backward prop.
- property c
Intercept.
- property cost
Get the computational cost of this Node.
- forward(x)
Get linear forward propogation.
- property m
Slope.
- property optimiser
Get current optimiser object.
- property schema
Get Marshmallow schema representation of this class.
Marshmallow schemas allow for easy and trustworthy serialisation and deserialisation of arbitrary objects either to inbulit types or json formats. This is an inherited member of the abstract class Serialise.
Note
Anything not listed here will inevitably be lost, ensure anything important is identified and expressley stated its type and structure.
- update()
Update any weights and biases for a single example.
- updates()
Update any weights and biases based on an avg of all examples.