Scalar to Ndarray (DP_STN)

This function "listifies" the scalar value

This function "listifies" the scalar value n number of times and saves the output to the output field

Sample Request

{
    "project_id": 41,
    "block_id": 10,
    "parent_id": 9,
    "function_code": "DP_STN",
    "args": {
        "scalar": [89, 13, 13, 345, 34, 332, 68, 39, 83, 73],
        "dimensions": 3
    }
}

Parameter Details

Scalar to Ndarray

POST https://autogon.ai/api/v1/engine/start

Request Body

NameTypeDescription

project_id*

int

current project ID

parent_id*

int

parent block ID

block_id*

int

current block ID

function_code*

String

block's function code

args*

object

block arguments

dimensions*

float

The new number of dimensions. The "ndim" number

scalar*

array

The input scalar array

{
    "status": "true",
    "message": {
        "id": 3,
        "project": 1,
        "block_id": 7,
        "parent_id": 6,
        "dataset_url": "",
        "x_value_url": "",
        "y_value_url": ""
    }
}
// Some code

Last updated