d3m.namespace module


Expose all primitives under the same d3m.primitives namespace.

This is achieved using Python entry points. Python packages containing primitives can register them and expose them under the common namespace by adding an entry like the following to package’s setup.py:

entry_points = {
    'd3m.primitives': [
        'primitive_namespace.PrimitiveName = my_package.my_module:PrimitiveClassName',

The example above would expose the my_package.my_module.PrimitiveClassName primitive under d3m.primitives.primitive_namespace.PrimitiveName.