Commit 71336a1a authored by Sujen's avatar Sujen

Merge branch '2019-06-22-spen' into 'master'

Update multi-label primitive

See merge request datadrivendiscovery/primitives!254
parents e5b871e9 1b757319
{
"id": "3a3d7703-3f30-4ebe-9998-5db9f7598278",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/pipeline.json",
"created": "2019-06-16T00:42:05.226422Z",
"inputs": [
{
"name": "inputs"
}
],
"outputs": [
{
"data": "steps.5.produce",
"name": "outputs.0"
}
],
"steps": [
{
"type": "PRIMITIVE",
"primitive": {
"id": "f31f8c1f-d1c5-43e5-a4b2-2ae4a761ef2e",
"version": "0.2.0",
"python_path": "d3m.primitives.data_transformation.denormalize.Common",
"name": "Denormalize datasets",
"digest": "afca078f05899b9f329e1b8cc0973848e39e83a7521d2cade81c1fbad5cf8139"
},
"arguments": {
"inputs": {
"type": "CONTAINER",
"data": "inputs.0"
}
},
"outputs": [
{
"id": "produce"
}
]
},
{
"type": "PRIMITIVE",
"primitive": {
"id": "4b42ce1e-9b98-4a25-b68e-fad13311eb65",
"version": "0.3.0",
"python_path": "d3m.primitives.data_transformation.dataset_to_dataframe.Common",
"name": "Extract a DataFrame from a Dataset",
"digest": "e557fc176af67913ed241dbe793cf986439157cfe9c4a12f1aafcba3c07b8b6f"
},
"arguments": {
"inputs": {
"type": "CONTAINER",
"data": "steps.0.produce"
}
},
"outputs": [
{
"id": "produce"
}
]
},
{
"type": "PRIMITIVE",
"primitive": {
"id": "4503a4c6-42f7-45a1-a1d4-ed69699cf5e1",
"version": "0.2.0",
"python_path": "d3m.primitives.data_transformation.extract_columns_by_semantic_types.DataFrameCommon",
"name": "Extracts columns by semantic type",
"digest": "d4fa27a3e215b89d2231d344ec0202e1b8e41ad322deb79c68fd6ca673eae3f7"
},
"arguments": {
"inputs": {
"type": "CONTAINER",
"data": "steps.1.produce"
}
},
"outputs": [
{
"id": "produce"
}
],
"hyperparams": {
"semantic_types": {
"type": "VALUE",
"data": [
"https://metadata.datadrivendiscovery.org/types/PrimaryKey",
"https://metadata.datadrivendiscovery.org/types/PrimaryMultiKey",
"https://metadata.datadrivendiscovery.org/types/Attribute"
]
}
}
},
{
"type": "PRIMITIVE",
"primitive": {
"id": "4503a4c6-42f7-45a1-a1d4-ed69699cf5e1",
"version": "0.2.0",
"python_path": "d3m.primitives.data_transformation.extract_columns_by_semantic_types.DataFrameCommon",
"name": "Extracts columns by semantic type",
"digest": "d4fa27a3e215b89d2231d344ec0202e1b8e41ad322deb79c68fd6ca673eae3f7"
},
"arguments": {
"inputs": {
"type": "CONTAINER",
"data": "steps.1.produce"
}
},
"outputs": [
{
"id": "produce"
}
],
"hyperparams": {
"semantic_types": {
"type": "VALUE",
"data": [
"https://metadata.datadrivendiscovery.org/types/PrimaryKey",
"https://metadata.datadrivendiscovery.org/types/PrimaryMultiKey",
"https://metadata.datadrivendiscovery.org/types/SuggestedTarget"
]
}
}
},
{
"type": "PRIMITIVE",
"primitive": {
"id": "d510cb7a-1782-4f51-b44c-58f0236e47c7",
"version": "0.5.0",
"python_path": "d3m.primitives.data_transformation.column_parser.DataFrameCommon",
"name": "Parses strings into their types",
"digest": "7e16e2b1e559690e221de471826d7d1cd36698bc5140dc00f3c7a6c6b711c3b2"
},
"arguments": {
"inputs": {
"type": "CONTAINER",
"data": "steps.2.produce"
}
},
"outputs": [
{
"id": "produce"
}
]
},
{
"type": "PRIMITIVE",
"primitive": {
"id": "2dfa8611-a55d-47d6-afb6-e5d531cf5281",
"version": "1.0.1",
"python_path": "d3m.primitives.classification.multilabel_classifier.DSBOX",
"name": "dsbox-spen-mlclassifier",
"digest": "4adb83bd57485113fec45ee1a97bd90472e79cb64a172ec670f63eb54db23e55"
},
"arguments": {
"inputs": {
"type": "CONTAINER",
"data": "steps.4.produce"
},
"outputs": {
"type": "CONTAINER",
"data": "steps.3.produce"
}
},
"outputs": [
{
"id": "produce"
}
]
}
],
"digest": "956b06f277f6aa018bffbef587b2097759495aa4eab4fece1606c1c3eaebbbf0"
}
{
"problem": "LL1_multilearn_emotions_problem",
"full_inputs": ["LL1_multilearn_emotions_dataset"],
"train_inputs": ["LL1_multilearn_emotions_dataset_TRAIN"],
"test_inputs": ["LL1_multilearn_emotions_dataset_TEST"],
"score_inputs": ["LL1_multilearn_emotions_dataset_SCORE"]
}
\ No newline at end of file
{
"id": "2dfa8611-a55d-47d6-afb6-e5d531cf5281",
"version": "1.0.0",
"version": "1.0.1",
"name": "dsbox-spen-mlclassifier",
"description": "Multi-label classfier primitive\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.",
"description": "Multi-label classifier primitive using structured prediction energy networks (SPEN).\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.",
"python_path": "d3m.primitives.classification.multilabel_classifier.DSBOX",
"primitive_family": "CLASSIFICATION",
"algorithm_types": [
......@@ -13,8 +13,8 @@
"classification"
],
"source": {
"name": "UMASS",
"contact": "pedram:[email protected]",
"name": "ISI",
"contact": "mailto:[email protected]",
"uris": [
"https://github.com/rooshenas/dsbox-spen"
]
......@@ -22,7 +22,7 @@
"installation": [
{
"type": "PIP",
"package_uri": "git+https://github.com/rooshenas/[email protected]f51535529f55f19313c8260947beb9dcb94cab8a#egg=dsbox-spen"
"package_uri": "git+https://github.com/rooshenas/[email protected]2f0ae91bb467769d7243a19510df56630691833a#egg=dsbox-spen"
}
],
"precondition": [],
......@@ -122,15 +122,6 @@
"https://metadata.datadrivendiscovery.org/types/ControlParameter"
],
"description": "Batch size"
},
"bib": {
"type": "d3m.metadata.hyperparams.Hyperparameter",
"default": false,
"structural_type": "bool",
"semantic_types": [
"https://metadata.datadrivendiscovery.org/types/ControlParameter"
],
"description": "Bibtext dataset is a special dataset with different way for data processing, this params is to check whether or not"
}
},
"arguments": {
......@@ -270,7 +261,7 @@
"temporary_directory": "typing.Union[NoneType, str]"
},
"params": {
"_mlp_model": "dsbox.spen.core.mlp.MLP",
"_mlp_model": "dsbox.spen.core.sg_spen.SPEN",
"_class_name_to_number": "typing.List[str]",
"_target_column_name": "str",
"_features": "typing.List[str]",
......@@ -278,5 +269,5 @@
}
},
"structural_type": "dsbox.spen.primitives.MultiLabelClassifier.MLClassifier",
"digest": "7620f7c16bd29b9620f7f9ac3754766bfce2b3753a6a74d4115b53a4cc442ecf"
}
\ No newline at end of file
"digest": "4adb83bd57485113fec45ee1a97bd90472e79cb64a172ec670f63eb54db23e55"
}
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