Skip to content

Commit

Permalink
modify description for dtype, batch_size, and checkpoint_freq
Browse files Browse the repository at this point in the history
  • Loading branch information
levi131 committed Dec 10, 2021
1 parent 445ddd2 commit 1325d7b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion paddlescience/network/network_fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class FCNet(NetworkBase):
num_outs(int): Number of outputs.
num_layers(int): Number of layers.
hidden_size(int): Hiden size in each layer.
dtype(string): Optional, default 'float32'. The data type of the weights and bias, could be 'float32' or 'float64'.
dtype(string): Optional, default 'float32'. The data type of the weights and bias, we only support 'float32' now.
activation(string): Optional, default 'tanh'. The type of activation function used in each layer, could be 'tanh' or 'sigmoid'.
Example:
Expand Down
4 changes: 3 additions & 1 deletion paddlescience/solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ def solve(self, num_epoch=1000, batch_size=None, checkpoint_freq=1000):
Train the network with respect to num_epoch.
Parameters:
num_epoch(int): Optional, default 1000. Number epochs.
num_epoch(int): Optional, default 1000. Number of epochs.
batch_size(int|None): Under develop. Optional, default None. How many sample points are used as a batch during training.
checkpoint_freq(int): Under develop. Optional, default 1000. How many epochs to store the training status once.
Return:
solution(Callable): A python func functhion that takes a GeometryDiscrete as input and a numpy array as outputs.
Expand Down

0 comments on commit 1325d7b

Please sign in to comment.