Commands frame/dot_product¶
[ALPHA] Calculate dot product for each row in current frame.
POST /v1/commands/¶
GET /v1/commands/:id¶
Request¶
Route
POST /v1/commands/
Body
name: | frame/dot_product |
---|---|
arguments: | frame : Frame
left_column_names : list
right_column_names : list
dot_product_column_name : unicode
default_left_values : list (default=None)
default_right_values : list (default=None)
|
Headers
Authorization: test_api_key_1
Content-type: application/json
Description
Calculate the dot product for each row in a frame using values from two equal-length sequences of columns.
Dot product is computed by the following formula:
The dot product of two vectors and is . The dot product for each row is stored in a new column in the existing frame.
Notes¶
If default_left_values or default_right_values are not specified, any null values will be replaced by zeros.
Response¶
Status
200 OK
Body
Returns information about the command. See the Response Body for Get Command here below. It is the same.