Skip to content

Commit

Permalink
Docs: Add links to external documentations
Browse files Browse the repository at this point in the history
  • Loading branch information
andreArtelt committed Dec 8, 2024
1 parent c7999bc commit 1537424
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion epyt_flow/data/benchmarks/batadal.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def load_data(download_dir: str = None, return_X_y: bool = False,
`dict`
Dictionary of the loaded benchmark data. The dictionary contains the two training
data sets ("train_1" and "train_2"), as well as the test data set ("test").
If `return_X_y` is False, each dictionary entry is a Pandas dataframe.
If `return_X_y` is False, each dictionary entry is a `Pandas dataframe <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html>`_.
Otherwise, it is a tuple of sensor readings and labels (except for the test set) --
if `return_ground_truth` is True or `return_features_desc` is True, the corresponding
data is appended to the tuple.
Expand Down
7 changes: 4 additions & 3 deletions epyt_flow/data/benchmarks/battledim.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def load_data(return_test_scenario: bool, download_dir: str = None, return_X_y:
Returns
-------
Either a `pandas.DataFrame` instance or a tuple of Numpy arrays.
Either a `pandas.DataFrame <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html>`_ instance or a tuple of `Numpy arrays <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_.
Benchmark data set.
"""
# Download data files if necessary
Expand Down Expand Up @@ -389,8 +389,9 @@ def load_scada_data(return_test_scenario: bool, download_dir: str = None,
:class:`~epyt_flow.simulation.scada.scada_data.ScadaData` or `list[tuple[numpy.ndarray, numpy.ndarray]]`
The simulated benchmark scenario as either a
:class:`~epyt_flow.simulation.scada.scada_data.ScadaData` instance or as a tuple of
(X, y) Numpy arrays. If 'return_leak_locations' is True, the leak locations are included
as an instance of `scipy.sparse.bsr_array` as well.
(X, y) `Numpy arrays <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_.
If 'return_leak_locations' is True, the leak locations are included
as an instance of `scipy.sparse.bsr_array <https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.bsr_array.html>`_ as well.
"""
download_dir = download_dir if download_dir is not None else get_temp_folder()

Expand Down
8 changes: 4 additions & 4 deletions epyt_flow/data/benchmarks/gecco_water_quality.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ def compute_evaluation_score(y_pred: np.ndarray, y: np.ndarray) -> float:
Parameters
----------
y_pred : `numpy.ndarray`
y_pred : `numpy.ndarray <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
Event indication prediction over time
y : `numpy.ndarray`
y : `numpy.ndarray <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
Ground truth event indication over time.
Returns
Expand Down Expand Up @@ -85,7 +85,7 @@ def load_gecco2017_water_quality_data(download_dir: str = None, return_X_y: bool
Returns
-------
`pandas.DataFrame` or `tuple[numpy.ndarray, numpy.ndarray]`
`pandas.DataFrame <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html>`_ or `tuple[numpy.ndarray, numpy.ndarray] <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
The benchmark data set as either a Pandas data frame or as a pair of (X, y) Numpy arrays.
"""
url_data = "https://zenodo.org/records/3884465/files/1_gecco2017_water_quality.csv?download=1"
Expand Down Expand Up @@ -154,7 +154,7 @@ def load_gecco2018_water_quality_data(download_dir: str = None, return_X_y: bool
Returns
-------
`pandas.DataFrame` or `tuple[numpy.ndarray, numpy.ndarray]`
`pandas.DataFrame <https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.html>`_ or `tuple[numpy.ndarray, numpy.ndarray] <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
The benchmark data set as either a Pandas data frame or as a pair of (X, y) Numpy arrays.
"""
# Download data if necessary
Expand Down
8 changes: 4 additions & 4 deletions epyt_flow/data/benchmarks/leakdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def compute_evaluation_score(scenarios_id: list[int], use_net1: bool,
List of scenarios ID that are to be evaluated -- there is a total number of 1000 scenarios.
use_net1 : `bool`
If True, Net1 LeakDB will be used for evaluation, otherwise the Hanoi LeakDB will be used.
y_pred_labels_per_scenario : `list[numpy.ndarray]`
y_pred_labels_per_scenario : `list[numpy.ndarray] <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
Predicted binary labels (over time) for each scenario in `scenarios_id`.
Returns
Expand Down Expand Up @@ -201,7 +201,7 @@ def load_data(scenarios_id: list[int], use_net1: bool, download_dir: str = None,
The default is False.
return_leak_locations : `bool`
If True and if `return_X_y` is True, the leak locations are returned as well --
as an instance of `scipy.sparse.bsr_array`.
as an instance of `scipy.sparse.bsr_array <https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.bsr_array.html>`_.
The default is False.
verbose : `bool`, optional
Expand Down Expand Up @@ -327,7 +327,7 @@ def load_scada_data(scenarios_id: list[int], use_net1: bool = True, download_dir
The default is False.
return_leak_locations : `bool`
If True, the leak locations are returned as well --
as an instance of `scipy.sparse.bsr_array`.
as an instance of `scipy.sparse.bsr_array <https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.bsr_array.html>`_.
The default is False.
verbose : `bool`, optional
Expand All @@ -341,7 +341,7 @@ def load_scada_data(scenarios_id: list[int], use_net1: bool = True, download_dir
The simulated benchmark scenarios as either a list of
:class:`~epyt_flow.simulation.scada.scada_data.ScadaData` instances or as a list of
(X, y) Numpy arrays. If 'return_leak_locations' is True, the leak locations are included
as an instance of `scipy.sparse.bsr_array` as well.
as an instance of `scipy.sparse.bsr_array <https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.bsr_array.html>`_ as well.
"""
download_dir = download_dir if download_dir is not None else get_temp_folder()

Expand Down
4 changes: 2 additions & 2 deletions epyt_flow/data/benchmarks/water_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ def compute_evaluation_score(y_pred: np.ndarray, y: np.ndarray) -> dict:
Parameters
----------
y_pred : `numpy.ndarray`
y_pred : `numpy.ndarray <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
Event indication prediction over time
y : `numpy.ndarray`
y : `numpy.ndarray <https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html>`_
Ground truth event indication over time.
Returns
Expand Down

0 comments on commit 1537424

Please sign in to comment.