@@ -26,8 +26,9 @@ def _load_tensor_from_url(url, labels, timeout=10):
2626 and None is returned.
2727
2828 :param str url: URL to the remote `.pth` tensor file.
29- :param list[str] | tuple[str] labels: Labels for the resulting LabelTensor.
30- :param int timeout: Timeout for the request in seconds.
29+ :param labels: Labels for the resulting LabelTensor.
30+ :type labels: list[str] | tuple[str]
31+ :param int timeout: Timeout for the request in seconds. Default is 10s.
3132 :return: A LabelTensor object if successful, otherwise None.
3233 :rtype: LabelTensor | None
3334 """
@@ -71,12 +72,14 @@ def laplace_equation(input_, output_, params_):
7172class InversePoisson2DSquareProblem (SpatialProblem , InverseProblem ):
7273 r"""
7374 Implementation of the inverse 2-dimensional Poisson problem in the square
74- domain :math:`[0, 1] \times [0, 1]`,
75- with unknown parameter domain :math:`[-1, 1] \times [-1, 1]`.
76- The `"data"` condition is added only if the required files are
77- downloaded successfully.
75+ domain :math:`[0, 1] \times [0, 1]`, with unknown parameter domain
76+ :math:`[-1, 1] \times [-1, 1]`.
77+
78+ The `"data"` condition is added only if the required files are downloaded
79+ successfully.
7880
7981 :Example:
82+
8083 >>> problem = InversePoisson2DSquareProblem()
8184 """
8285
@@ -108,6 +111,7 @@ def __init__(self, load=True, data_size=1.0):
108111
109112 :param bool load: If True, it attempts to load data from remote URLs.
110113 Set to False to skip data loading (e.g., if no internet connection).
114+ Default is True.
111115 :param float data_size: The fraction of the total data to use for the
112116 "data" condition. If set to 1.0, all available data is used.
113117 If set to 0.0, no data is used. Default is 1.0.
0 commit comments