Skip to content

API references cleanup #262

Open
Open
@mmahsereci

Description

@mmahsereci

The API references have several issues that should be addressed. These are, among others:

  • Some latex formulas are not rendered correctly

  • For some classes, the parameter descriptions are not rendered at all as the docstring is split. The parameter descriptions need to be moved to the right place. Example:

    This will not render the description of my_param:

    class MyCass:
        """This is my class."""
    
        def __init__(self, my_parameter):
            """
            :param my_parameter: Description of parameter.
            """
    

    This will :

    class MyCass:
        """This is my class.
    
      :param my_parameter: Description of parameter.
      """
    
        def __init__(self, my_parameter):
          ...
    
  • :raises: ExcetionType are partially not documented.

  • .. note:: and .. seealso:: is not used even though a note is present in the docstring.

  • Sentences are incomplete, e.g., dots . are missing, or they start without a capital letter.

  • There are inconsistencies in naming. For example sometimes the number of points are called num_points and sometimes n_points, or the number of input dimensions are sometimes called num_dim and sometimes input_dim. This is confusing to users.

  • Some docstrings do not exist or are incomplete

  • ...

Another thing that might be worth thinking about is to clean up the import structure and pulling some imports one level up (this may minorly break some code as imports change). For example instead of from emukit.quadrature.loop.specific_loop import SpecificLoop we should only have from emukit.quadrature.loop import SpecificLoop. It's more user friendly and the docs are cleaner.

We should probably go through the modules one by one and see if the issues are resolved.


Modules docs that have been corrected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions