train

API definition

virtual void train(idx_t n, const float *x) const = 0;

Function

Abstract API for training. No specific implementation is provided.

Input

idx_t n: number of feature vectors in the training dataset.

const float *x: feature vector data.

Output

N/A

Return value

N/A

Restrictions

  • Value range of n: 0 < n < 1e9.
  • x must be a non-null pointer with a length of dimIn × n. Otherwise, an out-of-bounds read/write error may occur, causing program breakdown.