Commit aa3d3fd1 authored by Mitar's avatar Mitar

Merge branch 'jpl-primitives' into 'master'

Jpl primitives

See merge request !142
parents 2fae7a94 25e7669b
......@@ -17,7 +17,7 @@
"installation": [
{
"type": "PIP",
"package_uri": "git+https://gitlab.com/datadrivendiscovery/jpl-primitives.git@4d9398634df2d9c1cd29f52c60f0f0cc05c8be40#egg=jpl_primitives"
"package_uri": "git+https://gitlab.com/datadrivendiscovery/jpl-primitives.git@16e40a6f49ed816f6cc520380ab2912f0d900486#egg=jpl_primitives"
}
],
"python_path": "d3m.primitives.learner.model.KerasWrap",
......@@ -26,13 +26,13 @@
],
"primitive_family": "LEARNER",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/primitive.json",
"original_python_path": "jpl_primitives.model.Model",
"original_python_path": "jpl_primitives.keras_wrap.model.Model",
"primitive_code": {
"class_type_arguments": {
"Inputs": "d3m.container.pandas.DataFrame",
"Outputs": "d3m.container.pandas.DataFrame",
"Params": "jpl_primitives.model.Params",
"Hyperparams": "jpl_primitives.model.Hyperparams"
"Params": "jpl_primitives.keras_wrap.model.Params",
"Hyperparams": "jpl_primitives.keras_wrap.model.Hyperparams"
},
"interfaces_version": "2019.5.8",
"interfaces": [
......@@ -78,13 +78,16 @@
"description": "next layer in the neural network",
"configuration": {
"previous_layer": {
"type": "d3m.metadata.hyperparams.Hyperparameter",
"default": "jpl_primitives.null.Null",
"type": "d3m.metadata.hyperparams.Primitive",
"default": "jpl_primitives.keras_wrap.layers.null.Null",
"structural_type": "d3m.primitive_interfaces.base.NeuralNetworkModuleMixin",
"semantic_types": [
"https://metadata.datadrivendiscovery.org/types/TuningParameter"
],
"description": "Composition of the neural network. Need to all implement NNLayerMixin"
"description": "Composition of the neural network. Need to all implement NNLayerMixin",
"primitive_families": [],
"algorithm_types": [],
"produce_methods": []
},
"none": {
"type": "d3m.metadata.hyperparams.Hyperparameter",
......@@ -584,7 +587,7 @@
},
"arguments": {
"hyperparams": {
"type": "jpl_primitives.model.Hyperparams",
"type": "jpl_primitives.keras_wrap.model.Hyperparams",
"kind": "RUNTIME"
},
"random_seed": {
......@@ -620,7 +623,7 @@
"kind": "PIPELINE"
},
"params": {
"type": "jpl_primitives.model.Params",
"type": "jpl_primitives.keras_wrap.model.Params",
"kind": "RUNTIME"
}
},
......@@ -634,7 +637,7 @@
"type": "typing.Dict[str, typing.Union[d3m.metadata.base.Metadata, type]]"
},
"hyperparams": {
"type": "jpl_primitives.model.Hyperparams"
"type": "jpl_primitives.keras_wrap.model.Hyperparams"
}
},
"returns": "typing.Union[NoneType, d3m.metadata.base.DataMetadata]",
......@@ -684,7 +687,7 @@
"get_params": {
"kind": "OTHER",
"arguments": [],
"returns": "jpl_primitives.model.Params",
"returns": "jpl_primitives.keras_wrap.model.Params",
"description": "Returns parameters of this primitive.\n\nParameters are all parameters of the primitive which can potentially change during a life-time of\na primitive. Parameters which cannot are passed through constructor.\n\nParameters should include all data which is necessary to create a new instance of this primitive\nbehaving exactly the same as this instance, when the new instance is created by passing the same\nparameters to the class constructor and calling ``set_params``.\n\nNo other arguments to the method are allowed (except for private arguments).\n\nReturns\n-------\nParams\n An instance of parameters."
},
"multi_produce": {
......@@ -741,7 +744,7 @@
},
"params": {}
},
"structural_type": "jpl_primitives.model.Model",
"description": "A base class for primitives which have to be fitted on both input and output data\nbefore they can start producing (useful) outputs from inputs.\n\nAttributes\n----------\nmetadata : PrimitiveMetadata\n Primitive's metadata. Available as a class attribute.\nlogger : Logger\n Primitive's logger. Available as a class attribute.\nhyperparams : Hyperparams\n Hyperparams passed to the constructor.\nrandom_seed : int\n Random seed passed to the constructor.\ndocker_containers : Dict[str, DockerContainer]\n A dict mapping Docker image keys from primitive's metadata to (named) tuples containing\n container's address under which the container is accessible by the primitive, and a\n dict mapping exposed ports to ports on that address.\nvolumes : Dict[str, str]\n A dict mapping volume keys from primitive's metadata to file and directory paths\n where downloaded and extracted files are available to the primitive.\ntemporary_directory : str\n An absolute path to a temporary directory a primitive can use to store any files\n for the duration of the current pipeline run phase. Directory is automatically\n cleaned up after the current pipeline run phase finishes.",
"digest": "ca1db678e88a06022c9d8f8e25c2a51aa6f12ed01f65fa9983dea28e2264c3c7"
"structural_type": "jpl_primitives.keras_wrap.model.Model",
"description": "The main learner primitive that is responsible for assembling the custom built neural network as part of Keras Wrap.\nIn order to use this primitive, you should assemble your architecture via your pipeline and pass the primitive reference\nto the last layer as your 'previous_layer'. All Keras Wrap layers inherit from NeuralNetworkModuleMixin and follow the\nnaming convention 'd3m.primitives.layer.<layer_name>.KerasWrap'. You should also specify the proper loss function and any\naccompanying metrics that should be tracked during the training process as well. These primtives that are support as port of\nKeras wrap inherit from NeuralNetworkObjectMixin and follow the form 'd3m.primitives.loss_function.<loss_name>.KerasWrap'.\n\nAttributes\n----------\nmetadata : PrimitiveMetadata\n Primitive's metadata. Available as a class attribute.\nlogger : Logger\n Primitive's logger. Available as a class attribute.\nhyperparams : Hyperparams\n Hyperparams passed to the constructor.\nrandom_seed : int\n Random seed passed to the constructor.\ndocker_containers : Dict[str, DockerContainer]\n A dict mapping Docker image keys from primitive's metadata to (named) tuples containing\n container's address under which the container is accessible by the primitive, and a\n dict mapping exposed ports to ports on that address.\nvolumes : Dict[str, str]\n A dict mapping volume keys from primitive's metadata to file and directory paths\n where downloaded and extracted files are available to the primitive.\ntemporary_directory : str\n An absolute path to a temporary directory a primitive can use to store any files\n for the duration of the current pipeline run phase. Directory is automatically\n cleaned up after the current pipeline run phase finishes.",
"digest": "53c66125857354b08eae150613a12525ccb139839b02b9c1455e0094ef666f30"
}
......@@ -18,7 +18,7 @@
"installation": [
{
"type": "PIP",
"package_uri": "git+https://gitlab.com/datadrivendiscovery/jpl-primitives.git@4d9398634df2d9c1cd29f52c60f0f0cc05c8be40#egg=jpl_primitives"
"package_uri": "git+https://gitlab.com/datadrivendiscovery/jpl-primitives.git@16e40a6f49ed816f6cc520380ab2912f0d900486#egg=jpl_primitives"
}
],
"python_path": "d3m.primitives.object_detection.retina_net.JPLPrimitives",
......@@ -27,13 +27,13 @@
],
"primitive_family": "OBJECT_DETECTION",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/primitive.json",
"original_python_path": "jpl_primitives.retina_net.RetinaNet",
"original_python_path": "jpl_primitives.object_detection.retina_net.RetinaNet",
"primitive_code": {
"class_type_arguments": {
"Inputs": "d3m.container.pandas.DataFrame",
"Outputs": "d3m.container.pandas.DataFrame",
"Params": "jpl_primitives.retina_net.Params",
"Hyperparams": "jpl_primitives.retina_net.Hyperparams"
"Params": "jpl_primitives.object_detection.retina_net.Params",
"Hyperparams": "jpl_primitives.object_detection.retina_net.Hyperparams"
},
"interfaces_version": "2019.5.8",
"interfaces": [
......@@ -181,7 +181,7 @@
},
"arguments": {
"hyperparams": {
"type": "jpl_primitives.retina_net.Hyperparams",
"type": "jpl_primitives.object_detection.retina_net.Hyperparams",
"kind": "RUNTIME"
},
"random_seed": {
......@@ -217,7 +217,7 @@
"kind": "PIPELINE"
},
"params": {
"type": "jpl_primitives.retina_net.Params",
"type": "jpl_primitives.object_detection.retina_net.Params",
"kind": "RUNTIME"
}
},
......@@ -231,7 +231,7 @@
"type": "typing.Dict[str, typing.Union[d3m.metadata.base.Metadata, type]]"
},
"hyperparams": {
"type": "jpl_primitives.retina_net.Hyperparams"
"type": "jpl_primitives.object_detection.retina_net.Hyperparams"
}
},
"returns": "typing.Union[NoneType, d3m.metadata.base.DataMetadata]",
......@@ -281,7 +281,7 @@
"get_params": {
"kind": "OTHER",
"arguments": [],
"returns": "jpl_primitives.retina_net.Params",
"returns": "jpl_primitives.object_detection.retina_net.Params",
"description": "Returns parameters of this primitive.\n\nParameters are all parameters of the primitive which can potentially change during a life-time of\na primitive. Parameters which cannot are passed through constructor.\n\nParameters should include all data which is necessary to create a new instance of this primitive\nbehaving exactly the same as this instance, when the new instance is created by passing the same\nparameters to the class constructor and calling ``set_params``.\n\nNo other arguments to the method are allowed (except for private arguments).\n\nReturns\n-------\nParams\n An instance of parameters."
},
"multi_produce": {
......@@ -340,7 +340,7 @@
"state": "typing.Dict"
}
},
"structural_type": "jpl_primitives.retina_net.RetinaNet",
"structural_type": "jpl_primitives.object_detection.retina_net.RetinaNet",
"description": "Implementation of RetinaNet for object detection https://arxiv.org/abs/1708.02002\n\nAttributes\n----------\nmetadata : PrimitiveMetadata\n Primitive's metadata. Available as a class attribute.\nlogger : Logger\n Primitive's logger. Available as a class attribute.\nhyperparams : Hyperparams\n Hyperparams passed to the constructor.\nrandom_seed : int\n Random seed passed to the constructor.\ndocker_containers : Dict[str, DockerContainer]\n A dict mapping Docker image keys from primitive's metadata to (named) tuples containing\n container's address under which the container is accessible by the primitive, and a\n dict mapping exposed ports to ports on that address.\nvolumes : Dict[str, str]\n A dict mapping volume keys from primitive's metadata to file and directory paths\n where downloaded and extracted files are available to the primitive.\ntemporary_directory : str\n An absolute path to a temporary directory a primitive can use to store any files\n for the duration of the current pipeline run phase. Directory is automatically\n cleaned up after the current pipeline run phase finishes.",
"digest": "93e652e30d36c41a78b7d4ad07440b13846954b70cc694d97277b6a63ab4fa98"
"digest": "d0566a9af8c49bc55604b9c982ef10f5c4cd23dcc8bf5dd7eee2c949079f31d9"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment