teradataml 20.0.0.2__py3-none-any.whl → 20.0.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of teradataml might be problematic. Click here for more details.

Files changed (126) hide show
  1. teradataml/LICENSE-3RD-PARTY.pdf +0 -0
  2. teradataml/README.md +315 -2
  3. teradataml/__init__.py +4 -0
  4. teradataml/_version.py +1 -1
  5. teradataml/analytics/analytic_function_executor.py +95 -8
  6. teradataml/analytics/byom/__init__.py +1 -1
  7. teradataml/analytics/json_parser/metadata.py +12 -3
  8. teradataml/analytics/json_parser/utils.py +7 -2
  9. teradataml/analytics/sqle/__init__.py +5 -1
  10. teradataml/analytics/table_operator/__init__.py +1 -1
  11. teradataml/analytics/uaf/__init__.py +1 -1
  12. teradataml/analytics/utils.py +4 -0
  13. teradataml/analytics/valib.py +18 -4
  14. teradataml/automl/__init__.py +51 -6
  15. teradataml/automl/data_preparation.py +59 -35
  16. teradataml/automl/data_transformation.py +58 -33
  17. teradataml/automl/feature_engineering.py +27 -12
  18. teradataml/automl/model_training.py +73 -46
  19. teradataml/common/constants.py +88 -29
  20. teradataml/common/garbagecollector.py +2 -1
  21. teradataml/common/messagecodes.py +19 -3
  22. teradataml/common/messages.py +6 -1
  23. teradataml/common/sqlbundle.py +64 -12
  24. teradataml/common/utils.py +246 -47
  25. teradataml/common/warnings.py +11 -0
  26. teradataml/context/context.py +161 -27
  27. teradataml/data/amazon_reviews_25.csv +26 -0
  28. teradataml/data/byom_example.json +11 -0
  29. teradataml/data/dataframe_example.json +18 -2
  30. teradataml/data/docs/byom/docs/DataRobotPredict.py +2 -2
  31. teradataml/data/docs/byom/docs/DataikuPredict.py +40 -1
  32. teradataml/data/docs/byom/docs/H2OPredict.py +2 -2
  33. teradataml/data/docs/byom/docs/ONNXEmbeddings.py +242 -0
  34. teradataml/data/docs/byom/docs/ONNXPredict.py +2 -2
  35. teradataml/data/docs/byom/docs/PMMLPredict.py +2 -2
  36. teradataml/data/docs/sqle/docs_17_20/NaiveBayes.py +1 -1
  37. teradataml/data/docs/sqle/docs_17_20/Shap.py +34 -6
  38. teradataml/data/docs/sqle/docs_17_20/TDNaiveBayesPredict.py +4 -4
  39. teradataml/data/docs/sqle/docs_17_20/TextParser.py +3 -3
  40. teradataml/data/docs/tableoperator/docs_17_20/Image2Matrix.py +118 -0
  41. teradataml/data/docs/uaf/docs_17_20/CopyArt.py +145 -0
  42. teradataml/data/docs/uaf/docs_17_20/DWT2D.py +4 -1
  43. teradataml/data/docs/uaf/docs_17_20/DickeyFuller.py +18 -21
  44. teradataml/data/hnsw_alter_data.csv +5 -0
  45. teradataml/data/hnsw_data.csv +10 -0
  46. teradataml/data/jsons/byom/h2opredict.json +1 -1
  47. teradataml/data/jsons/byom/onnxembeddings.json +266 -0
  48. teradataml/data/jsons/sqle/17.20/TD_Shap.json +0 -1
  49. teradataml/data/jsons/sqle/17.20/TD_TextParser.json +1 -1
  50. teradataml/data/jsons/sqle/20.00/TD_HNSW.json +296 -0
  51. teradataml/data/jsons/sqle/20.00/TD_HNSWPredict.json +206 -0
  52. teradataml/data/jsons/sqle/20.00/TD_HNSWSummary.json +32 -0
  53. teradataml/data/jsons/sqle/20.00/TD_KMeans.json +250 -0
  54. teradataml/data/jsons/sqle/20.00/TD_SMOTE.json +266 -0
  55. teradataml/data/jsons/sqle/20.00/TD_VectorDistance.json +278 -0
  56. teradataml/data/jsons/storedprocedure/17.20/TD_COPYART.json +71 -0
  57. teradataml/data/jsons/tableoperator/17.20/IMAGE2MATRIX.json +53 -0
  58. teradataml/data/jsons/uaf/17.20/TD_DICKEY_FULLER.json +10 -19
  59. teradataml/data/jsons/uaf/17.20/TD_SAX.json +3 -1
  60. teradataml/data/jsons/uaf/17.20/TD_WINDOWDFFT.json +15 -5
  61. teradataml/data/medical_readings.csv +101 -0
  62. teradataml/data/patient_profile.csv +101 -0
  63. teradataml/data/scripts/lightgbm/dataset.template +157 -0
  64. teradataml/data/scripts/lightgbm/lightgbm_class_functions.template +247 -0
  65. teradataml/data/scripts/lightgbm/lightgbm_function.template +216 -0
  66. teradataml/data/scripts/lightgbm/lightgbm_sklearn.template +159 -0
  67. teradataml/data/scripts/sklearn/sklearn_fit.py +194 -167
  68. teradataml/data/scripts/sklearn/sklearn_fit_predict.py +136 -115
  69. teradataml/data/scripts/sklearn/sklearn_function.template +14 -19
  70. teradataml/data/scripts/sklearn/sklearn_model_selection_split.py +155 -137
  71. teradataml/data/scripts/sklearn/sklearn_transform.py +129 -42
  72. teradataml/data/target_udt_data.csv +8 -0
  73. teradataml/data/templates/open_source_ml.json +3 -2
  74. teradataml/data/teradataml_example.json +8 -0
  75. teradataml/data/vectordistance_example.json +4 -0
  76. teradataml/dataframe/copy_to.py +8 -3
  77. teradataml/dataframe/data_transfer.py +11 -1
  78. teradataml/dataframe/dataframe.py +1049 -285
  79. teradataml/dataframe/dataframe_utils.py +152 -20
  80. teradataml/dataframe/functions.py +578 -35
  81. teradataml/dataframe/setop.py +11 -6
  82. teradataml/dataframe/sql.py +185 -16
  83. teradataml/dbutils/dbutils.py +1049 -115
  84. teradataml/dbutils/filemgr.py +48 -1
  85. teradataml/hyperparameter_tuner/optimizer.py +12 -1
  86. teradataml/lib/aed_0_1.dll +0 -0
  87. teradataml/opensource/__init__.py +1 -1
  88. teradataml/opensource/_base.py +1466 -0
  89. teradataml/opensource/_class.py +464 -0
  90. teradataml/opensource/{sklearn/constants.py → _constants.py} +21 -14
  91. teradataml/opensource/_lightgbm.py +949 -0
  92. teradataml/opensource/_sklearn.py +1008 -0
  93. teradataml/opensource/{sklearn/_wrapper_utils.py → _wrapper_utils.py} +5 -6
  94. teradataml/options/__init__.py +54 -38
  95. teradataml/options/configure.py +131 -27
  96. teradataml/options/display.py +13 -2
  97. teradataml/plot/axis.py +47 -8
  98. teradataml/plot/figure.py +33 -0
  99. teradataml/plot/plot.py +63 -13
  100. teradataml/scriptmgmt/UserEnv.py +5 -5
  101. teradataml/scriptmgmt/lls_utils.py +130 -40
  102. teradataml/store/__init__.py +12 -0
  103. teradataml/store/feature_store/__init__.py +0 -0
  104. teradataml/store/feature_store/constants.py +291 -0
  105. teradataml/store/feature_store/feature_store.py +2318 -0
  106. teradataml/store/feature_store/models.py +1505 -0
  107. teradataml/table_operators/Apply.py +32 -18
  108. teradataml/table_operators/Script.py +3 -1
  109. teradataml/table_operators/TableOperator.py +3 -1
  110. teradataml/table_operators/query_generator.py +3 -0
  111. teradataml/table_operators/table_operator_query_generator.py +3 -1
  112. teradataml/table_operators/table_operator_util.py +37 -38
  113. teradataml/table_operators/templates/dataframe_register.template +69 -0
  114. teradataml/utils/dtypes.py +51 -2
  115. teradataml/utils/internal_buffer.py +18 -0
  116. teradataml/utils/validators.py +99 -8
  117. {teradataml-20.0.0.2.dist-info → teradataml-20.0.0.4.dist-info}/METADATA +321 -5
  118. {teradataml-20.0.0.2.dist-info → teradataml-20.0.0.4.dist-info}/RECORD +121 -94
  119. teradataml/libaed_0_1.dylib +0 -0
  120. teradataml/libaed_0_1.so +0 -0
  121. teradataml/opensource/sklearn/__init__.py +0 -1
  122. teradataml/opensource/sklearn/_class.py +0 -255
  123. teradataml/opensource/sklearn/_sklearn_wrapper.py +0 -1800
  124. {teradataml-20.0.0.2.dist-info → teradataml-20.0.0.4.dist-info}/WHEEL +0 -0
  125. {teradataml-20.0.0.2.dist-info → teradataml-20.0.0.4.dist-info}/top_level.txt +0 -0
  126. {teradataml-20.0.0.2.dist-info → teradataml-20.0.0.4.dist-info}/zip-safe +0 -0
@@ -0,0 +1,278 @@
1
+ {
2
+ "json_schema_major_version": "1",
3
+ "json_schema_minor_version": "1",
4
+ "json_content_version": "1",
5
+ "function_name": "TD_VectorDistance",
6
+ "function_version": "1.0",
7
+ "function_type": "fastpath",
8
+ "function_category": "Model Training",
9
+ "function_alias_name": "TD_VectorDistance",
10
+ "function_r_name": "aa.td_vectordistance",
11
+ "short_description": "fastpath function which takes a table of target vectors and a table of reference vectors(optional) and returns a table that contains the distance between the target-reference pair.",
12
+ "long_description": "fastpath function which takes a table of target vectors and a table of reference vectors(optional) and returns a table that contains the distance between the target-reference pair.",
13
+ "input_tables": [
14
+ {
15
+ "requiredInputKind": [
16
+ "PartitionByAny"
17
+ ],
18
+ "isOrdered": false,
19
+ "partitionByOne": false,
20
+ "name": "TargetTable",
21
+ "alternateNames": [],
22
+ "isRequired": true,
23
+ "rDescription": "The relation that contains target table vectors.",
24
+ "description": "The relation that contains target table vectors.",
25
+ "datatype": "TABLE_ALIAS",
26
+ "allowsLists": false,
27
+ "rName": "target.table",
28
+ "useInR": true,
29
+ "rOrderNum": 1
30
+ },
31
+ {
32
+ "requiredInputKind": [
33
+ "Dimension"
34
+ ],
35
+ "isOrdered": false,
36
+ "partitionByOne": false,
37
+ "name": "ReferenceTable",
38
+ "alternateNames": [],
39
+ "isRequired": false,
40
+ "rDescription": "The relation that contains reference table vectors.",
41
+ "description": "The relation that contains reference table vectors.",
42
+ "datatype": "TABLE_ALIAS",
43
+ "allowsLists": false,
44
+ "rName": "reference.table",
45
+ "useInR": true,
46
+ "rOrderNum": 2
47
+ }
48
+ ],
49
+ "argument_clauses": [
50
+ {
51
+ "targetTable": [
52
+ "TargetTable"
53
+ ],
54
+ "checkDuplicate": true,
55
+ "allowedTypes": [],
56
+ "allowedTypeGroups": [
57
+ "INTEGER"
58
+ ],
59
+ "requiredLength": 1,
60
+ "matchLengthOfArgument": "",
61
+ "allowPadding": false,
62
+ "name": "TargetIDColumn",
63
+ "alternateNames": [],
64
+ "isRequired": true,
65
+ "rDescription": "Specifies the name of the target table column that contains identifiers of the target table vectors.",
66
+ "description": "Specifies the name of the target table column that contains identifiers of the target table vectors.",
67
+ "datatype": "COLUMNS",
68
+ "allowsLists": false,
69
+ "rName": "target.id.column",
70
+ "useInR": true,
71
+ "rOrderNum": 3
72
+ },
73
+ {
74
+ "targetTable": [
75
+ "TargetTable"
76
+ ],
77
+ "checkDuplicate": true,
78
+ "allowedTypes": [],
79
+ "allowedTypeGroups": [
80
+ "NUMERIC","VECTOR","BYTE","VARBYTE"
81
+ ],
82
+ "matchLengthOfArgument": "",
83
+ "allowPadding": false,
84
+ "name": "TargetFeatureColumns",
85
+ "alternateNames": [],
86
+ "isRequired": true,
87
+ "rDescription": "Specifies the names of the target table columns that contain features of the target table vectors.",
88
+ "description": "Specifies the names of the target table columns that contain features of the target table vectors.",
89
+ "datatype": "COLUMNS",
90
+ "allowsLists": true,
91
+ "rName": "target.feature.columns",
92
+ "useInR": true,
93
+ "rOrderNum": 4
94
+ },
95
+ {
96
+ "targetTable": [
97
+ "ReferenceTable"
98
+ ],
99
+ "checkDuplicate": true,
100
+ "allowedTypes": [],
101
+ "allowedTypeGroups": [
102
+ "INTEGER"
103
+ ],
104
+ "requiredLength": 1,
105
+ "matchLengthOfArgument": "",
106
+ "allowPadding": false,
107
+ "name": "RefIDColumn",
108
+ "alternateNames": [],
109
+ "isRequired": false,
110
+ "rDescription": "Specifies the name of the reference table column that contains identifiers of the reference table vectors.",
111
+ "description": "Specifies the name of the reference table column that contains identifiers of the reference table vectors.",
112
+ "datatype": "COLUMNS",
113
+ "allowsLists": false,
114
+ "rName": "ref.id.column",
115
+ "useInR": true,
116
+ "rOrderNum": 5
117
+ },
118
+ {
119
+ "targetTable": [
120
+ "ReferenceTable"
121
+ ],
122
+ "checkDuplicate": true,
123
+ "allowedTypes": [],
124
+ "allowedTypeGroups": [
125
+ "NUMERIC","VECTOR","BYTE","VARBYTE"
126
+ ],
127
+ "matchLengthOfArgument": "",
128
+ "allowPadding": false,
129
+ "name": "RefFeatureColumns",
130
+ "alternateNames": [],
131
+ "isRequired": false,
132
+ "rDescription": "Specifies the names of the reference table columns that contain features of the reference table vectors.",
133
+ "description": "Specifies the names of the reference table columns that contain features of the reference table vectors.",
134
+ "datatype": "COLUMNS",
135
+ "allowsLists": true,
136
+ "rName": "ref.feature.columns",
137
+ "useInR": true,
138
+ "rOrderNum": 6
139
+ },
140
+ {
141
+ "permittedValues": [
142
+ "COSINE",
143
+ "EUCLIDEAN",
144
+ "MANHATTAN",
145
+ "DOTPRODUCT",
146
+ "MINKOWSKI"
147
+ ],
148
+ "defaultValue": "COSINE",
149
+ "isOutputColumn": false,
150
+ "matchLengthOfArgument": "",
151
+ "allowPadding": false,
152
+ "name": "DistanceMeasure",
153
+ "alternateNames": [],
154
+ "isRequired": false,
155
+ "rDescription": "Specifies the distance measures that the function uses.The default value is 'cosine'.",
156
+ "description": "Specifies the distance measures that the function uses.The default value is 'cosine'.",
157
+ "datatype": "STRING",
158
+ "allowsLists": true,
159
+ "rName": "distance.measure",
160
+ "useInR": true,
161
+ "rOrderNum": 7
162
+ },
163
+ {
164
+ "defaultValue": 10,
165
+ "lowerBound": 1,
166
+ "upperBound": 100,
167
+ "lowerBoundType": "INCLUSIVE",
168
+ "upperBoundType": "INCLUSIVE",
169
+ "allowNaN": false,
170
+ "isOutputColumn": false,
171
+ "matchLengthOfArgument": "",
172
+ "allowPadding": false,
173
+ "name": "TopK",
174
+ "alternateNames": [],
175
+ "isRequired": false,
176
+ "rDescription": "Specifies, for each target vector and for each measure, the maximum number of closest reference vectors to include in the output table.",
177
+ "description": "Specifies, for each target vector and for each measure, the maximum number of closest reference vectors to include in the output table.",
178
+ "datatype": "INTEGER",
179
+ "allowsLists": false,
180
+ "rName": "topk",
181
+ "useInR": true,
182
+ "rOrderNum": 8
183
+ },
184
+ {
185
+ "defaultValue": 2,
186
+ "lowerBound": 1,
187
+ "upperBound": 2147483647,
188
+ "lowerBoundType": "INCLUSIVE",
189
+ "upperBoundType": "INCLUSIVE",
190
+ "allowNaN": false,
191
+ "isOutputColumn": false,
192
+ "matchLengthOfArgument": "",
193
+ "allowPadding": false,
194
+ "name": "PValue",
195
+ "alternateNames": [],
196
+ "isRequired": false,
197
+ "rDescription": "Specify the p value for MinKowski distance.",
198
+ "description": "Specify the p value for MinKowski distance.",
199
+ "datatype": "INTEGER",
200
+ "allowsLists": false,
201
+ "rName": "pvalue",
202
+ "useInR": true,
203
+ "rOrderNum": 9
204
+ },
205
+ {
206
+ "lowerBound": -1.797693e+308,
207
+ "upperBound": 1.797693e+308,
208
+ "lowerBoundType": "INCLUSIVE",
209
+ "upperBoundType": "INCLUSIVE",
210
+ "allowNaN": false,
211
+ "isOutputColumn": false,
212
+ "matchLengthOfArgument": "",
213
+ "allowPadding": false,
214
+ "name": "SearchThresholds",
215
+ "alternateNames": [],
216
+ "isRequired": false,
217
+ "rDescription": "Specifies the thresholds between a pair of target and reference vectors.",
218
+ "description": "Specifies the thresholds between a pair of target and reference vectors.",
219
+ "datatype": "NUMERIC",
220
+ "allowsLists": true,
221
+ "rName": "search.thresholds",
222
+ "useInR": true,
223
+ "rOrderNum": 10
224
+ },
225
+ {
226
+ "permittedValues": [],
227
+ "isOutputColumn": false,
228
+ "matchLengthOfArgument": "",
229
+ "allowPadding": false,
230
+ "defaultValue": false,
231
+ "name": "LargeReferenceInput",
232
+ "alternateNames": [],
233
+ "isRequired": false,
234
+ "rDescription": "If the reference table is huge compared to the target table, then passing true in this syntax element will make the reference table as 'Partition By any' instead of 'Dimension'.",
235
+ "description": "If the reference table is huge compared to the target table, then passing true in this syntax element will make the reference table as 'Partition By any' instead of 'Dimension'.",
236
+ "datatype": "BOOLEAN",
237
+ "allowsLists": false,
238
+ "rName": "largereference.input",
239
+ "useInR": true,
240
+ "rOrderNum": 11
241
+ },
242
+ {
243
+ "permittedValues": [],
244
+ "isOutputColumn": false,
245
+ "matchLengthOfArgument": "",
246
+ "allowPadding": false,
247
+ "defaultValue": false,
248
+ "name": "OutputSimilarity",
249
+ "alternateNames": [],
250
+ "isRequired": false,
251
+ "rDescription": "Specify true if the user wants similarity instead of distance.",
252
+ "description": "Specify true if the user wants similarity instead of distance.",
253
+ "datatype": "BOOLEAN",
254
+ "allowsLists": false,
255
+ "rName": "output.similarity",
256
+ "useInR": true,
257
+ "rOrderNum": 12
258
+ },
259
+ {
260
+ "defaultValue": 1,
261
+ "lowerBound": 1,
262
+ "upperBound": 4096,
263
+ "lowerBoundType": "INCLUSIVE",
264
+ "upperBoundType": "INCLUSIVE",
265
+ "allowNaN": false,
266
+ "name": "EmbeddingSize",
267
+ "alternateNames": [],
268
+ "isRequired": false,
269
+ "rDescription": "Specify the embedding size of the vectors.",
270
+ "description": "Specify the embedding size of the vectors.",
271
+ "datatype": "INTEGER",
272
+ "allowsLists": false,
273
+ "rName": "embedding.size",
274
+ "useInR": true,
275
+ "rOrderNum": 13
276
+ }
277
+ ]
278
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "FuncName": "TD_COPYART",
3
+ "FuncDescriptionShort": "TD_COPYART creates a copy of existing ART table.",
4
+ "FuncDescriptionLong": [
5
+ "creates a copy of existing ART table with permanet or volatile option."
6
+ ],
7
+ "FunctionVersion": "...",
8
+ "FunctionCategory": "General Utility",
9
+ "JSONVersion": "1",
10
+ "FuncRName": "td_Copy_Art",
11
+ "MaxInputFiles": 0,
12
+ "Input": [],
13
+ "Output": [],
14
+ "Params": [
15
+ {
16
+ "Name": "DST_DATABASENAME",
17
+ "Type": "string",
18
+ "Optional": false,
19
+ "Description": [
20
+ "Name of the target database.",
21
+ "Must include where TGT_TABLENAME need to be created."
22
+ ],
23
+ "LangName": "database_name"
24
+ },
25
+ {
26
+ "Name": "DST_TABLENAME",
27
+ "Type": "string",
28
+ "Optional": false,
29
+ "Description": [
30
+ "Name of the target table."
31
+ ],
32
+ "LangName": "table_name"
33
+ },
34
+ {
35
+ "Name": "DST_MAPNAME",
36
+ "Type": "string",
37
+ "Optional": false,
38
+ "Description": [
39
+ "[Optional] If not specified, the default map is used.",
40
+ "Provided name of the map to be used for the copy."
41
+ ],
42
+ "LangName": "map_name"
43
+ },
44
+ {
45
+ "Name": "DST_ISPERMTABLE",
46
+ "Type": "string",
47
+ "Optional": true,
48
+ "PermittedValues": [
49
+ "T",
50
+ "TRUE",
51
+ "F",
52
+ "FALSE",
53
+ "t",
54
+ "true",
55
+ "'true'",
56
+ "'false'",
57
+ "f",
58
+ "false"
59
+ ],
60
+ "Description": [
61
+ "[Optional] If not specified, the default is true.",
62
+ "If true, the target table is permanent.",
63
+ "If false, the target table is volatile."
64
+ ],
65
+ "LangName": "permanent_table"
66
+ }
67
+ ],
68
+ "IsPlottable": true,
69
+ "InputFmt": false,
70
+ "OutputFmt": false
71
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "json_schema_major_version": "1",
3
+ "json_schema_minor_version": "0",
4
+ "json_content_version": "1",
5
+ "function_name": "TD_IMAGE2MATRIX",
6
+ "function_version": "1.0",
7
+ "function_type": "table_operator",
8
+ "function_alias_name": "Image2Matrix",
9
+ "function_r_name": "aa.td_image2matrix",
10
+ "ref_function_r_name": "aa.td_image2matrix",
11
+ "supports_view": false,
12
+ "short_description": "Converts an image to a matrix.",
13
+ "long_description": "The function takes input with BLOBs that contain JPEG or PNG images. The image size cannot be greater than (16MB - 4096 bytes), and should not exceed 4,000,000 pixels.",
14
+ "input_tables": [
15
+ {
16
+ "requiredInputKind": [
17
+ "PartitionByKey"
18
+ ],
19
+ "isOrdered": false,
20
+ "isLocalOrdered": true,
21
+ "partitionByOne": false,
22
+ "hashByKey": true,
23
+ "name": "input",
24
+ "alternateNames": [],
25
+ "isRequired": true,
26
+ "rDescription": "Specifies the teradataml DataFrame containing the imageTable",
27
+ "description": "Specifies the table containing the input imageTable",
28
+ "datatype": "TABLE_ALIAS",
29
+ "allowsLists": false,
30
+ "rName": "data",
31
+ "useInR": true,
32
+ "rOrderNum": 1
33
+ }
34
+ ],
35
+ "argument_clauses": [
36
+ {
37
+ "defaultValue": "gray",
38
+ "permittedValues": ["gray", "rgb"],
39
+ "isOutputColumn": false,
40
+ "alternateNames": [],
41
+ "name": "OUTPUT",
42
+ "isRequired": false,
43
+ "rDescription": "If the OUTPUT option is gray, then the output columns are Y, X, and GRAY, where GRAY is the gray image value. If the OUTPUT option is rgb, then the output columns are Y, X, RED, GREEN, and BLUE.",
44
+ "description": "If the OUTPUT option is gray, then the output columns are Y, X, and GRAY, where GRAY is the gray image value. If the OUTPUT option is rgb, then the output columns are Y, X, RED, GREEN, and BLUE.",
45
+ "datatype": "STRING",
46
+ "allowsLists": false,
47
+ "rName": "output",
48
+ "useInR": true,
49
+ "rOrderNum": 2
50
+ }
51
+ ]
52
+ }
53
+
@@ -11,7 +11,7 @@
11
11
  "MaxInputFiles": 1,
12
12
  "Input": [
13
13
  {
14
- "Type": "SERIES",
14
+ "Type": ["SERIES", "ART"],
15
15
  "Description": [
16
16
  "This section outlines the syntax associated with invoking the TD_DICKEY_FULLER function. The function takes in a single logical-runtime series as an input. The series is only permitted to have univariate elements. "
17
17
  ],
@@ -47,19 +47,15 @@
47
47
  "PermittedValues": [
48
48
  "NONE",
49
49
  "DRIFT",
50
- "TREND",
51
- "DRIFTNTREND",
52
- "FORMULA"
50
+ "SQUARED",
51
+ "DRIFTNTREND"
53
52
  ],
54
53
  "Description": [
55
54
  "An enumerated type with values of: NONE, DRIFT, TREND, DRIFTNTREND, or FORMULA, which influences the type of regression that will be run for the test.",
56
- "NONE - Random Walk",
57
- "DRIFT - Random Walk with Drift",
58
- "TREND - Random Walk with Linear Trend",
59
- "DRIFTNTREND - Random Walk with Drift and Trend",
60
- "DRIFTNTREND & MAXLAGS - Random Walk with Drift and Trend and auxiliary lags",
61
- "FORMULA & MAXLAGS - Random Walk with roll-your-own on Drift and Trend; plus auxiliary lags"
62
- ]
55
+ "NONE: Random walk",
56
+ "DRIFT: Random walk with drift",
57
+ "DRIFTNTREND: Random walk with drift and trend",
58
+ "SQUARED: Random walk with drift, trend, and quadratic trend."]
63
59
  },
64
60
  {
65
61
  "Name": "MAXLAGS",
@@ -67,19 +63,14 @@
67
63
  "Optional": true,
68
64
  "LowerBound": 0,
69
65
  "LowerBoundType": "INCLUSIVE",
66
+ "UpperBound": 100,
67
+ "UpperBoundType": "INCLUSIVE",
68
+ "DefaultValue": 0,
70
69
  "AllowNaN": false,
71
70
  "Description": [
72
71
  "The presence of the MAXLAGS parameter means the data scientist wishes to run the augmented Dickey-Fuller test. This is the maximum number of lags that will be used to form the regression equation. "
73
72
  ],
74
73
  "LangName": "max_lags"
75
- },
76
- {
77
- "Name": "DRIFT_TREND_FORMULA",
78
- "Type": "<td_formula>",
79
- "Optional": true,
80
- "Description": [
81
- "A Teradata formula string that stores the formula used to represent the drift and trend portions of the regression. The formula is only valid when used in conjunction with ALGORITHM (FORMULA). It uses the Teradata formula syntax and is expected to be of the form: b_1 + b_2X_1 + b_3X_1^2 + … etc; which the UAF function interprets as: : b_1 + b_2t + b_3t^2 + … etc "
82
- ]
83
74
  }
84
75
  ],
85
76
  "InputFmt": false,
@@ -47,6 +47,7 @@
47
47
  "GLOBAL",
48
48
  "SLIDING"
49
49
  ],
50
+ "DefaultValue": "GLOBAL",
50
51
  "Description": [
51
52
  "[Optional] If not specified, the GLOBAL type is the default.",
52
53
  "Specifies the window type used in the SAX transformation."
@@ -56,11 +57,12 @@
56
57
  "Name": "OUTPUT_TYPE",
57
58
  "Type": "string",
58
59
  "Optional": true,
59
- "PermittedValues": [
60
+ "PermittedValues": [
60
61
  "STRING",
61
62
  "BITMAP",
62
63
  "O_CHARS"
63
64
  ],
65
+ "DefaultValue": "STRING",
64
66
  "Description": [
65
67
  "[Optional] If not specified, the STRING type is the default.",
66
68
  "The output format of the result can be string, char or bitmap."
@@ -137,12 +137,14 @@
137
137
  {
138
138
  "Name" : "WINDOW",
139
139
  "Type" : "record",
140
+ "Optional" : true,
140
141
  "Description": "",
141
142
  "NestedParams" :
142
143
  [
143
144
  {
144
145
  "Name" : "SIZE",
145
146
  "Type" : "record",
147
+ "Optional" : true,
146
148
  "Description": "",
147
149
  "NestedParams" :
148
150
  [
@@ -231,6 +233,7 @@
231
233
  {
232
234
  "Name" : "EXPONENTIAL",
233
235
  "Type" : "record",
236
+ "Optional" : true,
234
237
  "Description": "",
235
238
  "NestedParams" :
236
239
  [
@@ -256,6 +259,7 @@
256
259
  {
257
260
  "Name" : "GAUSSIAN",
258
261
  "Type" : "record",
262
+ "Optional" : true,
259
263
  "Description": "",
260
264
  "NestedParams" :
261
265
  [
@@ -272,6 +276,7 @@
272
276
  {
273
277
  "Name" : "GENERAL_COSINE",
274
278
  "Type" : "record",
279
+ "Optional" : true,
275
280
  "Description": "",
276
281
  "NestedParams" :
277
282
  [
@@ -289,6 +294,7 @@
289
294
  {
290
295
  "Name" : "GENERAL_GAUSSIAN",
291
296
  "Type" : "record",
297
+ "Optional" : true,
292
298
  "Description": "",
293
299
  "NestedParams" :
294
300
  [
@@ -298,7 +304,7 @@
298
304
  "Optional" : true,
299
305
  "Description": [
300
306
  "The gaussian shape, and the value is 1. Required parameter when WINDOW(TYPE(GENERAL_GUASSIAN) is specified."
301
- ]
307
+ ]
302
308
  },
303
309
  {
304
310
  "Name" : "SIGMA",
@@ -306,13 +312,14 @@
306
312
  "Optional" : true,
307
313
  "Description": [
308
314
  "The standard deviation value. Required parameter when WINDOW(TYPE(GENERAL_GUASSIAN) is specified."
309
- ]
315
+ ]
310
316
  }
311
317
  ]
312
318
  },
313
319
  {
314
320
  "Name" : "GENERAL_HAMMING",
315
321
  "Type" : "record",
322
+ "Optional" : true,
316
323
  "Description": "",
317
324
  "NestedParams" :
318
325
  [
@@ -322,13 +329,14 @@
322
329
  "Optional" : true,
323
330
  "Description": [
324
331
  "The value of the window coefficient. Required parameter when WINDOW( TYPE( GENERAL_HAMMING ) is specified."
325
- ]
332
+ ]
326
333
  }
327
334
  ]
328
335
  },
329
336
  {
330
337
  "Name" : "KAISER",
331
338
  "Type" : "record",
339
+ "Optional" : true,
332
340
  "Description": "",
333
341
  "NestedParams" :
334
342
  [
@@ -338,12 +346,13 @@
338
346
  "Optional" : true,
339
347
  "Description": [
340
348
  "The value for the shape between the main lobe width and side lobe level. Required parameter when WINDOW(TYPE(KAISER)) is specified."
341
- ]
349
+ ]
342
350
  }
343
351
  ]
344
352
  },
345
353
  {
346
354
  "Name" : "TAYLOR",
355
+ "Optional" : true,
347
356
  "Type" : "record",
348
357
  "Description": "",
349
358
  "NestedParams" :
@@ -381,6 +390,7 @@
381
390
  {
382
391
  "Name" : "TUKEY",
383
392
  "Type" : "record",
393
+ "Optional" : true,
384
394
  "Description": "",
385
395
  "NestedParams" :
386
396
  [
@@ -397,4 +407,4 @@
397
407
  ]
398
408
  }
399
409
  ]
400
- }
410
+ }