Skip to main content

setNodeTypes

setNodeTypes(nodeTypes): Promise<void>

Set the node types of the model. Node types define the type of data each node represents.

Parameters

NameTypeDescription
nodeTypesanyA dictionary of node types.

Returns

Promise<void>

Promise that resolves when the node types have been set.

Throws

If the server request fails.

Example

const model = await client.getModel('test-model');
await model.setNodeTypes({ 'x': 'continuous', 'y': 'categorical' });