d3m.namespace¶
-
d3m.namespace.setup()[source]¶ Expose all primitives under the same
d3m.primitivesnamespace.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.PrimitiveClassNameprimitive underd3m.primitives.primitive_namespace.PrimitiveName.- Return type
None