Encoder Object REST API
Last updated
Last updated
This API function call creates a new Encoder object.
It’s possible to specify parameters when creating an encoder. These parameters are passed in a data structure. The following table list the possible key value pair that can be put in that map:
Key
Value
minTrimSize
Set the number of positive examples for a key value to be kept in an encoder when performing trimming. That is if minTrimSize
is 3 and a given key value was seen 25 time with 2 positive example, it will be trimmed. Note that this parameter only applies to Encoder with a binary target.
Parameter
Required/Optional
Description
encoderName
Required
Name of the new Encoder.
encoderTarget
Required
Target attribute to use.
targetType
optional
Target Type, valid values are C for continuous based encoder and B for binary based encoder.
HTTP Status Code
HTTP Status Message
Description
201
CREATED
Success
409
CONFLICT
An encoder with same name already exists.
None
This API function call updates an existing Encoder.
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
None
To be concise, we replaced some of the content of the body with (…) in the following example:
This API function call deletes an existing Encoder.
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
409
CONFLICT
Encoder is being used by a SymetryML project.
None
This API function returns information about the key present in an Encoder.
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
HTTP Response Entity
Description
DataFrame
This API function lets you obtain detailed information about all the values for a given key.
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
HTTP Response Entity
Description
DataFrame
Key value to change count and/or sum
Type
New Count
New Sum
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
None
Key to add a value. If the key does not exist, it will be created.
Key value to add count and sum.
Key type.
Count for the new key.
sum for the new key.
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
None
This API function returns a list of encoder names that were created by a given user.
HTTP Status Code
HTTP Status Message
Description
200
OK
Success
Request:
For each attribute (e.g., key) in this Encoder, the following columns are returned in the : * Key * Type * Count = number of different values for this key.
(see ) * Value * Type * Count * Sum
This API function lets you modify specific key values in the Encoder. When invoking this REST endpoint, the server expects to receive the following columns in the in the order shown below.
This API function lets you create new key values in the Encoder. When invoking this REST endpoint, the server expects to receive the following columns in the in the order shown below.