Skip to content

Commit

Permalink
updated primitive json and pipelines; release 0.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bjschoenfeld committed May 31, 2019
1 parent 80915d0 commit 9c9bbcb
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.pyc
.env
*.egg-info
build/
dist/
2 changes: 1 addition & 1 deletion byudml/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.6.4'
__version__ = '0.6.5'
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "3013ad40-7c51-4991-b0fb-dbec65607979",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/pipeline.json",
"created": "2019-05-31T21:52:31.359810Z",
"created": "2019-05-31T22:03:55.635611Z",
"inputs": [
{
"name": "inputs"
Expand Down Expand Up @@ -61,7 +61,7 @@
"version": "0.4.3",
"python_path": "d3m.primitives.metalearning.metafeature_extractor.BYU",
"name": "Dataset Metafeature Extraction",
"digest": "c3ada53d06a883fcbb24098f2c37b1be9ac1ad2aa92a2f968eb7222b61669f2e"
"digest": "b6de54719221d73a68324d88556ed60db38743071b6ea2f5185ce4419c3d512a"
},
"arguments": {
"inputs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "b32b9af1-34b4-437b-ad83-650f7df10acb",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/pipeline.json",
"created": "2019-05-31T21:52:31.112646Z",
"created": "2019-05-31T22:03:55.404180Z",
"inputs": [
{
"name": "inputs"
Expand Down Expand Up @@ -61,7 +61,7 @@
"version": "0.4.3",
"python_path": "d3m.primitives.metalearning.metafeature_extractor.BYU",
"name": "Dataset Metafeature Extraction",
"digest": "c3ada53d06a883fcbb24098f2c37b1be9ac1ad2aa92a2f968eb7222b61669f2e"
"digest": "b6de54719221d73a68324d88556ed60db38743071b6ea2f5185ce4419c3d512a"
},
"arguments": {
"inputs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "74f5ccb1-053a-46cf-ad7f-005f67a15652",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/pipeline.json",
"created": "2019-05-31T21:52:31.224158Z",
"created": "2019-05-31T22:03:55.513808Z",
"inputs": [
{
"name": "inputs"
Expand Down Expand Up @@ -117,7 +117,7 @@
"version": "0.1.4",
"python_path": "d3m.primitives.data_preprocessing.random_sampling_imputer.BYU",
"name": "Random Sampling Imputer",
"digest": "cbee04602076d4bf58866d67e60822644981f27141194378137b4f365a40001d"
"digest": "231d95afe182c5fea17fcbd446eaa88c2725a0f5cdbcf8a7cd9519600087d5bd"
},
"arguments": {
"inputs": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "f4fe3fcc-45fe-4c85-8845-549e2f466f21",
"schema": "https://metadata.datadrivendiscovery.org/schemas/v0/pipeline.json",
"created": "2019-05-31T21:52:30.640395Z",
"created": "2019-05-31T22:03:54.979333Z",
"inputs": [
{
"name": "inputs"
Expand Down Expand Up @@ -117,7 +117,7 @@
"version": "0.1.4",
"python_path": "d3m.primitives.data_preprocessing.random_sampling_imputer.BYU",
"name": "Random Sampling Imputer",
"digest": "cbee04602076d4bf58866d67e60822644981f27141194378137b4f365a40001d"
"digest": "231d95afe182c5fea17fcbd446eaa88c2725a0f5cdbcf8a7cd9519600087d5bd"
},
"arguments": {
"inputs": {
Expand Down
10 changes: 5 additions & 5 deletions primitive_jsons/imputer/primitive.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"IMPUTATION"
],
"description": "This imputes missing values in a DataFrame by sampling known values from\neach column independently. If the training data has no known values in a\nparticular column, no values are imputed.\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": "cbee04602076d4bf58866d67e60822644981f27141194378137b4f365a40001d",
"digest": "231d95afe182c5fea17fcbd446eaa88c2725a0f5cdbcf8a7cd9519600087d5bd",
"effects": [
"NO_MISSING_VALUES"
],
Expand All @@ -12,7 +12,7 @@
{
"package": "byudml",
"type": "PIP",
"version": "0.6.3"
"version": "0.6.5"
}
],
"location_uris": [
Expand Down Expand Up @@ -131,7 +131,7 @@
"timeout",
"iterations"
],
"description": "A method calling multiple produce methods at once.\n\nWhen a primitive has multiple produce methods it is common that they might compute the\nsame internal results for same inputs but return different representations of those results.\nIf caller is interested in multiple of those representations, calling multiple produce\nmethods might lead to recomputing same internal results multiple times. To address this,\nthis method allows primitive author to implement an optimized version which computes\ninternal results only once for multiple calls of produce methods, but return those different\nrepresentations.\n\nIf any additional method arguments are added to primitive's produce method(s), they have\nto be added to this method as well. This method should accept an union of all arguments\naccepted by primitive's produce method(s) and then use them accordingly when computing\nresults.\n\nThe default implementation of this method just calls all produce methods listed in\n``produce_methods`` in order and is potentially inefficient.\n\nParameters\n----------\nproduce_methods : Sequence[str]\n A list of names of produce methods to call.\ninputs : Inputs\n The inputs given to all produce methods.\ntimeout : float\n A maximum time this primitive should take to produce outputs for all produce methods\n listed in ``produce_methods`` argument, in seconds.\niterations : int\n How many of internal iterations should the primitive do.\n\nReturns\n-------\nMultiCallResult\n A dict of values for each produce method wrapped inside ``MultiCallResult``.",
"description": "A method calling multiple produce methods at once.\n\nWhen a primitive has multiple produce methods it is common that they might compute the\nsame internal results for same inputs but return different representations of those results.\nIf caller is interested in multiple of those representations, calling multiple produce\nmethods might lead to recomputing same internal results multiple times. To address this,\nthis method allows primitive author to implement an optimized version which computes\ninternal results only once for multiple calls of produce methods, but return those different\nrepresentations.\n\nIf any additional method arguments are added to primitive's produce method(s), they have\nto be added to this method as well. This method should accept an union of all arguments\naccepted by primitive's produce method(s) and then use them accordingly when computing\nresults.\n\nThe default implementation of this method just calls all produce methods listed in\n``produce_methods`` in order and is potentially inefficient.\n\nIf primitive should have been fitted before calling this method, but it has not been,\nprimitive should raise a ``PrimitiveNotFittedError`` exception.\n\nParameters\n----------\nproduce_methods : Sequence[str]\n A list of names of produce methods to call.\ninputs : Inputs\n The inputs given to all produce methods.\ntimeout : float\n A maximum time this primitive should take to produce outputs for all produce methods\n listed in ``produce_methods`` argument, in seconds.\niterations : int\n How many of internal iterations should the primitive do.\n\nReturns\n-------\nMultiCallResult\n A dict of values for each produce method wrapped inside ``MultiCallResult``.",
"kind": "OTHER",
"returns": "d3m.primitive_interfaces.base.MultiCallResult"
},
Expand All @@ -141,7 +141,7 @@
"timeout",
"iterations"
],
"description": "Produce primitive's best choice of the output for each of the inputs.\n\nThe output value should be wrapped inside ``CallResult`` object before returning.\n\nIn many cases producing an output is a quick operation in comparison with ``fit``, but not\nall cases are like that. For example, a primitive can start a potentially long optimization\nprocess to compute outputs. ``timeout`` and ``iterations`` can serve as a way for a caller\nto guide the length of this process.\n\nIdeally, a primitive should adapt its call to try to produce the best outputs possible\ninside the time allocated. If this is not possible and the primitive reaches the timeout\nbefore producing outputs, it should raise a ``TimeoutError`` exception to signal that the\ncall was unsuccessful in the given time. The state of the primitive after the exception\nshould be as the method call has never happened and primitive should continue to operate\nnormally. The purpose of ``timeout`` is to give opportunity to a primitive to cleanly\nmanage its state instead of interrupting execution from outside. Maintaining stable internal\nstate should have precedence over respecting the ``timeout`` (caller can terminate the\nmisbehaving primitive from outside anyway). If a longer ``timeout`` would produce\ndifferent outputs, then ``CallResult``'s ``has_finished`` should be set to ``False``.\n\nSome primitives have internal iterations (for example, optimization iterations).\nFor those, caller can provide how many of primitive's internal iterations\nshould a primitive do before returning outputs. Primitives should make iterations as\nsmall as reasonable. If ``iterations`` is ``None``, then there is no limit on\nhow many iterations the primitive should do and primitive should choose the best amount\nof iterations on its own (potentially controlled through hyper-parameters).\nIf ``iterations`` is a number, a primitive has to do those number of iterations,\nif possible. ``timeout`` should still be respected and potentially less iterations\ncan be done because of that. Primitives with internal iterations should make\n``CallResult`` contain correct values.\n\nFor primitives which do not have internal iterations, any value of ``iterations``\nmeans that they should run fully, respecting only ``timeout``.\n\nParameters\n----------\ninputs : Inputs\n The inputs of shape [num_inputs, ...].\ntimeout : float\n A maximum time this primitive should take to produce outputs during this method call, in seconds.\niterations : int\n How many of internal iterations should the primitive do.\n\nReturns\n-------\nCallResult[Outputs]\n The outputs of shape [num_inputs, ...] wrapped inside ``CallResult``.",
"description": "Produce primitive's best choice of the output for each of the inputs.\n\nThe output value should be wrapped inside ``CallResult`` object before returning.\n\nIn many cases producing an output is a quick operation in comparison with ``fit``, but not\nall cases are like that. For example, a primitive can start a potentially long optimization\nprocess to compute outputs. ``timeout`` and ``iterations`` can serve as a way for a caller\nto guide the length of this process.\n\nIdeally, a primitive should adapt its call to try to produce the best outputs possible\ninside the time allocated. If this is not possible and the primitive reaches the timeout\nbefore producing outputs, it should raise a ``TimeoutError`` exception to signal that the\ncall was unsuccessful in the given time. The state of the primitive after the exception\nshould be as the method call has never happened and primitive should continue to operate\nnormally. The purpose of ``timeout`` is to give opportunity to a primitive to cleanly\nmanage its state instead of interrupting execution from outside. Maintaining stable internal\nstate should have precedence over respecting the ``timeout`` (caller can terminate the\nmisbehaving primitive from outside anyway). If a longer ``timeout`` would produce\ndifferent outputs, then ``CallResult``'s ``has_finished`` should be set to ``False``.\n\nSome primitives have internal iterations (for example, optimization iterations).\nFor those, caller can provide how many of primitive's internal iterations\nshould a primitive do before returning outputs. Primitives should make iterations as\nsmall as reasonable. If ``iterations`` is ``None``, then there is no limit on\nhow many iterations the primitive should do and primitive should choose the best amount\nof iterations on its own (potentially controlled through hyper-parameters).\nIf ``iterations`` is a number, a primitive has to do those number of iterations,\nif possible. ``timeout`` should still be respected and potentially less iterations\ncan be done because of that. Primitives with internal iterations should make\n``CallResult`` contain correct values.\n\nFor primitives which do not have internal iterations, any value of ``iterations``\nmeans that they should run fully, respecting only ``timeout``.\n\nIf primitive should have been fitted before calling this method, but it has not been,\nprimitive should raise a ``PrimitiveNotFittedError`` exception.\n\nParameters\n----------\ninputs : Inputs\n The inputs of shape [num_inputs, ...].\ntimeout : float\n A maximum time this primitive should take to produce outputs during this method call, in seconds.\niterations : int\n How many of internal iterations should the primitive do.\n\nReturns\n-------\nCallResult[Outputs]\n The outputs of shape [num_inputs, ...] wrapped inside ``CallResult``.",
"inputs_across_samples": [],
"kind": "PRODUCE",
"returns": "d3m.primitive_interfaces.base.CallResult[d3m.container.pandas.DataFrame]",
Expand All @@ -168,7 +168,7 @@
"unsupervised_learning.UnsupervisedLearnerPrimitiveBase",
"base.PrimitiveBase"
],
"interfaces_version": "2019.4.4",
"interfaces_version": "2019.5.8",
"params": {
"known_values": "d3m.container.list.List"
}
Expand Down
Loading

0 comments on commit 9c9bbcb

Please sign in to comment.