invpinn
Class which implements an inverse pinn architecture
invpinn
Class implementing an inverse pinn architecture
__init__(data, eqns, constants, layers=4, units=60, inner_act='tanh', out_act='linear', constraint='soft')
Constructor for class.
| Parameters: |
|
|---|
get_network()
| Returns: |
|
|---|
get_epoch_loss()
| Returns: |
|
|---|
get_domain()
| Returns: |
|
|---|
get_epochs()
| Returns: |
|
|---|
get_boundaries()
| Returns: |
|
|---|
get_eqns()
| Returns: |
|
|---|
get_data()
| Returns: |
|
|---|
get_constants()
| Returns: |
|
|---|
get_trained_constants()
| Returns: |
|
|---|
train(epochs, opt='adam', meta='false', adapt_pt=None)
Main training function
| Parameters: |
|
|---|
trainNoTime(eqns, epochs, opt, meta, adapt_pt)
Main setup for training and training loop which calls trainStep. This is used for a purely spatial problem
| Parameters: |
|
|---|
trainTime(eqns, epochs, opt, meta, adapt_pt)
Main setup for training and training loop which calls trainStep. This is used for a spatio-temporal problem
| Parameters: |
|
|---|
findTrainedConstants()
Function which takes trained network and computes the predicted constants and cleans up the values.
Normalize
Bases: Layer
Class which describes a normalize layer for pinn. Returns input data normalized to interval [-1, 1].
Periodic
Bases: Layer
Class which describes a Periodic layer for pinn. Used in periodic models.
Weight
Bases: Layer
Class which describes a Weight layer for pinn. Used in inverse models.