Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1023 Bytes

CONTRIBUTING.md

File metadata and controls

29 lines (20 loc) · 1023 Bytes

Contributing to FiftyOne Brain

All Brain contributions should follow the practices established in FiftyOne.

Adding new public methods to the Brain package

The fiftyone.brain package should expose all core user-functionality at the base level. For example, for hardness, the user should be able to execute calls in the following way:

# Users should be able to do this
import fiftyone.brain as fob

fob.compute_hardness(...)

# And NOT have to do this
import fiftyone.brain.hardness as fobh

fobh.compute_hardness(...)

To achieve this, follow the existing pattern of declaring new public methods in fiftyone/brain/__init__.py.

Be sure to include a detailed docstring for all methods in this file, as they are pulled in by FiftyOne documentation builds and are made available in the public docs.