Skip to content

Commit

Permalink
clean up documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
rpreen committed Jun 5, 2024
1 parent beebe14 commit 9ff1723
Show file tree
Hide file tree
Showing 28 changed files with 87 additions and 51 deletions.
8 changes: 3 additions & 5 deletions aisdc/attacks/structural_attack.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
"""
Structural_attack.py.
Runs a number of 'static' structural attacks,based on:
- the target model's properties
- the TREs risk appetite as applied to tables and standard regressions
Runs a number of 'static' structural attacks based on:
(i) the target model's properties
(ii) the TREs risk appetite as applied to tables and standard regressions.
"""

from __future__ import annotations
Expand Down
2 changes: 1 addition & 1 deletion aisdc/attacks/target.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Target.py - information storage about the target model and data."""
"""Stores information about the target model and data."""

from __future__ import annotations

Expand Down
6 changes: 2 additions & 4 deletions aisdc/attacks/worst_case_attack.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""
Worst_case_attack.py.
"""Runs a worst case attack based upon predictive probabilities."""

Runs a worst case attack based upon predictive probabilities stored in two .csv files
""" # pylint: disable = too-many-lines
# pylint: disable = too-many-lines

from __future__ import annotations

Expand Down
5 changes: 2 additions & 3 deletions aisdc/preprocessing/loaders.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"""
Loaders.py
A set of useful handlers to pull in datasets common to the project and perform the appropriate
pre-processing.
A set of useful handlers to pull in datasets common to the project and perform
the appropriate pre-processing.
"""

# pylint: disable=import-error, invalid-name, consider-using-with, too-many-return-statements
Expand Down
13 changes: 0 additions & 13 deletions docs/source/attacks.rst

This file was deleted.

5 changes: 5 additions & 0 deletions docs/source/attacks/attribute.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Attribute Attack
================

.. automodule:: aisdc.attacks.attribute_attack
:members:
16 changes: 16 additions & 0 deletions docs/source/attacks/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Attacks
=======

Examples showing how to run the code can be found in the examples folder.

.. toctree::
:maxdepth: 1

likelihood
worst_case
structural
attribute
target
metrics
report
output_format
5 changes: 5 additions & 0 deletions docs/source/attacks/likelihood.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
LiRA Attack
===========

.. automodule:: aisdc.attacks.likelihood_attack
:members:
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/source/attacks/metrics.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Metrics
=======

.. automodule:: aisdc.metrics
:members:
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/source/attacks/report.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Report
======

.. automodule:: aisdc.attacks.report
:members:
5 changes: 5 additions & 0 deletions docs/source/attacks/structural.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Structural Attack
=================

.. automodule:: aisdc.attacks.structural_attack
:members:
5 changes: 5 additions & 0 deletions docs/source/attacks/target.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Target
======

.. automodule:: aisdc.attacks.target
:members:
5 changes: 5 additions & 0 deletions docs/source/attacks/worst_case.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Worst Case Attack
=================

.. automodule:: aisdc.attacks.worst_case_attack
:members:
1 change: 0 additions & 1 deletion docs/source/images/readme.md

This file was deleted.

26 changes: 6 additions & 20 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,31 +1,16 @@
.. GRAIMATTER-TEST documentation master file, created by
sphinx-quickstart on Fri Jun 17 05:14:45 2022.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
.. Documentation master file
Welcome to the AI-SDC documentation!
====================================

API Reference
#############

This is the class and function reference for safemodel.

.. toctree::
:maxdepth: 2
:caption: Contents:

introduction
preprocessing
attacks
safemodel
safedecisiontree
saferandomforest
safekeras
safesvc
examples
extending
output_format
attacks/index
safemodel/index
preprocessing/index

Indices and tables
==================
Expand All @@ -36,7 +21,8 @@ Indices and tables

Funding Statement
=================
This work was funded by UK Research and Innovation under Grant Numbers MC_PC_21033 and MC_PC_23006 as part of Phase 1 of the DARE UK (Data and Analytics Research Environments UK) programme (https://dareuk.org.uk/), delivered in partnership with Health Data Research UK (HDR UK) and Administrative Data Research UK (ADR UK).. The specific projects were Semi-Automatic checking of Research Outputs (SACRO -MC_PC_23006) and Guidelines and Resources for AI Model Access from TrusTEd Research environments (GRAIMATTER - MC_PC_21033).­ This project has also been supported by MRC and EPSRC [grant number MR/S010351/1]: PICTURES.

This work was funded by UK Research and Innovation under Grant Numbers MC_PC_21033 and MC_PC_23006 as part of Phase 1 of the `DARE UK <https://dareuk.org.uk>`_ (Data and Analytics Research Environments UK) programme, delivered in partnership with Health Data Research UK (HDR UK) and Administrative Data Research UK (ADR UK). The specific projects were Semi-Automatic checking of Research Outputs (SACRO; MC_PC_23006) and Guidelines and Resources for AI Model Access from TrusTEd Research environments (GRAIMATTER; MC_PC_21033).­This project has also been supported by MRC and EPSRC [grant number MR/S010351/1]: PICTURES.

.. image:: images/UK_Research_and_Innovation_logo.svg
:width: 200
Expand Down
7 changes: 7 additions & 0 deletions docs/source/preprocessing/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Preprocessing
=============

.. toctree::
:maxdepth: 1

loaders
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@

Preprocessing
================

Loaders
=======

.. automodule:: aisdc.preprocessing.loaders
:members:
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions docs/source/safemodel/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Safemodel
=========

.. toctree::
:maxdepth: 1

safemodel
safedecisiontree
saferandomforest
safekeras
safesvc
examples
extending
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 9ff1723

Please sign in to comment.