Skip to content

Commit d454899

Browse files
committed
fix pylint and update docs
1 parent 69f50f7 commit d454899

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pydens/model_torch.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def freeze_trainable(self, layers=None, variables=None):
6666
6767
Examples:
6868
69-
- ``variables=['log_scale'] # Frozes trainable multiplier that is included in the anzatc.``
69+
- ``variables=['log_scale'] # Freezes trainable multiplier that is included in the anzatc.``
7070
"""
7171
layers = layers or []
7272
variables = variables or []
@@ -132,8 +132,8 @@ class ConvBlockModel(TorchModel):
132132
The class is based on "`convolutional block from batchflow <https://github.com/analysiscenter/batchflow>`_".
133133
134134
The class allows to easily implement fully connected neural networks as well as convolutional
135-
neural networks. For purposes of solving simple differential equations we suggest using
136-
fully connected networks with skip connections.
135+
neural networks with many branches and skip connections. For purposes of solving simple
136+
differential equations we suggest using fully connected networks with skip connections.
137137
138138
See also docstring of `Solver`.
139139
@@ -148,7 +148,7 @@ class ConvBlockModel(TorchModel):
148148
Sequence configuring the amount of units in all dense layers of the architecture,
149149
if any present in the layout.
150150
activation : sequence
151-
Sequence of callables, str, for instance: [torch.Sin, torch.nn.Sigmoid, 'Sigmoid'].
151+
Sequence of callables, str, for instance: `[torch.Sin, torch.nn.Sigmoid, 'Sigmoid']`.
152152
153153
Examples:
154154
@@ -289,7 +289,7 @@ def pde(f, x, e):
289289
Sequence configuring the amount of units in all dense layers of the architecture,
290290
if any present in layout.
291291
activation : sequence
292-
Sequence of callables, str, for instance: [torch.Sin, torch.nn.Sigmoid, 'Sigmoid'].
292+
Sequence of callables, str, for instance: `[torch.Sin, torch.nn.Sigmoid, 'Sigmoid']`.
293293
294294
Examples:
295295

pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ max-line-length=120
88
max-attributes=25
99
max-args=15
1010
max-locals=25
11-
good-names=D, P, R, V, C, i, op, x, y, u, bar, xs, ys, wx, wy, t, lr
11+
good-names=D, P, R, V, C, i, op, x, y, u, bar, xs, ys, wx, wy, t, lr, t0
1212

1313
[MESSAGE CONTROL]
1414
disable=no-value-for-parameter,no-self-use,too-few-public-methods,unsubscriptable-object,no-method-argument,no-member,arguments-differ,len-as-condition,keyword-arg-before-vararg,too-many-locals,logging-format-interpolation, abstract-class-instantiated

0 commit comments

Comments
 (0)