Embeddings in low-dimensional space in float32 format, which can be converted to any of the following types: DataFrame, Series, DeviceBuffer.
// returns DataFrame<{[K extends number]: Series<Float32>}>
embeddings.asDataFrame();
// returns Series<Float32>
embeddings.asSeries();
// returns rmm.DeviceBuffer
embeddings.asDeviceBuffer();
Fit features into an embedded space.
array containing floats or doubles in the format [x1, y1, z1, x2, y2, z2...] for features x, y & z.
// For a sample dataset of colors, with properties r,g and b:
features = [
...Object.values({ r: xx1, g: xx2, b: xx3 }),
...Object.values({ r: xx4, g: xx5, b: xx6 }),
] // [xx1, xx2, xx3, xx4, xx5, xx6]
Optionaltarget: MemoryData | nullarray containing target values
// For a sample dataset of colors, with properties r,g and b:
target = [color1, color2] // len(target) = nFeatures
OptionalnFeatures: numbernumber of properties in the input features, if features is of the format [x1, y1, x2, y2...]
FittedUMAP object with updated embeddings
Fit features into an embedded space.
array containing floats or doubles in the format [x1, y1, z1, x2, y2, z2...] for features x, y & z.
// For a sample dataset of colors, with properties r,g and b:
features = [
...Object.values({ r: xx1, g: xx2, b: xx3 }),
...Object.values({ r: xx4, g: xx5, b: xx6 }),
] // [xx1, xx2, xx3, xx4, xx5, xx6]
Optionaltarget: DeviceBuffer | nullarray containing target values
// For a sample dataset of colors, with properties r,g and b:
target = [color1, color2] // len(target) = nFeatures
OptionalnFeatures: numbernumber of properties in the input features, if features is of the format [x1, y1, x2, y2...]
FittedUMAP object with updated embeddings
Fit features into an embedded space.
array containing floats or doubles in the format [x1, y1, z1, x2, y2, z2...] for features x, y & z.
// For a sample dataset of colors, with properties r,g and b:
features = [
...Object.values({ r: xx1, g: xx2, b: xx3 }),
...Object.values({ r: xx4, g: xx5, b: xx6 }),
] // [xx1, xx2, xx3, xx4, xx5, xx6]
Optionaltarget: R | nullarray containing target values
// For a sample dataset of colors, with properties r,g and b:
target = [color1, color2] // len(target) = nFeatures
OptionalnFeatures: numbernumber of properties in the input features, if features is of the format [x1, y1, x2, y2...]
FittedUMAP object with updated embeddings
Fit features into an embedded space.
array containing floats or doubles in the format [x1, y1, z1, x2, y2, z2...] for features x, y & z.
// For a sample dataset of colors, with properties r,g and b:
features = [
...Object.values({ r: xx1, g: xx2, b: xx3 }),
...Object.values({ r: xx4, g: xx5, b: xx6 }),
] // [xx1, xx2, xx3, xx4, xx5, xx6]
Optionaltarget: (number | bigint | null | undefined)[] | nullarray containing target values
// For a sample dataset of colors, with properties r,g and b:
target = [color1, color2] // len(target) = nFeatures
OptionalnFeatures: numbernumber of properties in the input features, if features is of the format [x1, y1, x2, y2...]
FittedUMAP object with updated embeddings
Fit features into an embedded space
Dense or sparse matrix containing floats or doubles. Acceptable dense formats: cuDF DataFrame
Optionaltarget: Series<R>cuDF Series containing target values
// For a sample dataset of colors, with properties r,g and b:
target = [color1, color2] // len(target) = nFeatures
FittedUMAP object with updated embeddings
Fit features into an embedded space
cuDF Series containing floats or doubles in the format [x1, y1, z1, x2, y2, z2...] for features x, y & z.
Optionaltarget: R | nullcuDF Series containing target values
// For a sample dataset of colors, with properties r,g and b:
target = [color1, color2] // len(target) = nFeatures
number of properties in the input features, if features is of the format [x1,y1,x2,y2...]
FittedUMAP object with updated embeddings
Embeddings in low-dimensional space in dtype format, which can be converted to any of the following types: DataFrame, Series, DeviceBuffer.
// returns DataFrame<{[K extends number]: Series<Float32>}>
getEmbeddings(new Float64).asDataFrame();
// returns Series<Float32>
getEmbeddings(new Int32).asSeries();
// returns rmm.DeviceBuffer
getEmbeddings(new UInt32).asDeviceBuffer();
Initialize a UMAP object