Skip to main content

attach

attach(dataName): Promise<void>

Attach data to the model. The data will be used during model training and inference.

Parameters

NameTypeDescription
dataNamestringThe name of the data to attach.

Returns

Promise<void>

Promise that resolves when the data has been attached.

Throws

If the server request fails.

Example

const model = await client.getModel('test-model');
await model.attach('test-data');