Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/embedding-atlas
/ functions
Functions
2,512 in github.com/apple/embedding-atlas
⨍
Functions
2,512
◇
Types & classes
481
↳
Endpoints
18
↓ 246 callers
Method
map
( input: DataflowNode<T[]>, build: (df: Dataflow, arg: DataflowNode<T>) => DataflowNode<U>, )
packages/utils/src/dataflow.ts:338
↓ 157 callers
Method
push
Queue `pipeline` over `n_threads` threads with `uniforms`.
packages/umap/umap/src/gpu_layout_modern.rs:153
↓ 121 callers
Method
get
Gets an object from the cache with the given key. Returns `null` if the entry is not found.
packages/viewer/src/app/data_source.ts:11
↓ 85 callers
Method
clone
()
packages/viewer/src/layouts/dashboard/occupancy_map.ts:25
↓ 85 callers
Method
set
Sets an object to the cache with the given key
packages/viewer/src/app/data_source.ts:14
↓ 83 callers
Method
nrows
(&self)
packages/umap/umap/src/spectral.rs:222
↓ 57 callers
Method
ncols
(&self)
packages/umap/umap/src/spectral.rs:218
↓ 53 callers
Method
from
(e: nndescent::NNDescentError)
packages/umap/umap/src/lib.rs:125
↓ 42 callers
Function
compute_projection
Compute embeddings and generate 2D projections for a DataFrame column. This is a unified entry point that auto-detects the modality of the i
packages/backend/embedding_atlas/projection.py:20
↓ 36 callers
Method
add
Add data to the summarizer
packages/component/src/lib/text_summarizer/text_summarizer.ts:42
↓ 36 callers
Function
make_test_data
(n: usize, dim: usize, seed: u64)
packages/umap/umap/src/lib.rs:1348
↓ 36 callers
Function
pagerank
Compute PageRank scores from a list of edges of a graph using PyTorch sparse matrix power iteration. The graph can be either unweighted (each
packages/backend/embedding_atlas/graph_metrics.py:30
↓ 36 callers
Method
update
Update some of the props. Props that aren't listed keep their current values.
packages/utils/svelte/mount_component.svelte.ts:12
↓ 33 callers
Method
as_slice
(&self)
packages/density-clustering/density_clustering/src/array_2d.rs:59
↓ 33 callers
Method
random_state
Random seed for reproducibility.
packages/umap/umap/src/lib.rs:441
↓ 32 callers
Method
column
(entry: TableEntry, column: ColumnSpec)
packages/component/src/lib/embedding_view/data/table_store.ts:226
↓ 31 callers
Method
keys
(rects: Rectangle[])
packages/component/src/lib/utils.ts:185
↓ 30 callers
Method
build
Run UMAP and return the result (embedding + KNN graph).
packages/umap/umap/src/lib.rs:588
↓ 29 callers
Method
destroy
Destroy the instance and release resources
packages/umap/umap-wasm/index.d.ts:244
↓ 28 callers
Method
delete
(key: number)
packages/component/src/lib/dynamic_label_placement/priority_queue.ts:26
↓ 27 callers
Method
init_method
Initialization method. Default: [`Init::Auto`].
packages/umap/umap/src/lib.rs:453
↓ 26 callers
Method
append
(message: LogMessage)
packages/viewer/src/app/logging.ts:26
↓ 26 callers
Method
n_epochs
Number of training epochs. Default: auto.
packages/umap/umap/src/lib.rs:405
↓ 25 callers
Function
_detect_binary_modality
Detect whether binary data is an image or audio based on magic bytes.
packages/backend/embedding_atlas/projection.py:343
↓ 24 callers
Function
_nw_series
Create a narwhals Series from a list of values via pandas.
packages/backend/tests/test_modality_detection.py:19
↓ 24 callers
Function
list
(name, options)
packages/umap/benchmark/benchmark/umap/report/report_lib.js:530
↓ 24 callers
Method
row
(&self, v: usize)
packages/umap/nndescent/src/nn_descent.rs:176
↓ 23 callers
Method
build
Build the NNDescent index. This is a synchronous wrapper around [`build_async`]. On native builds (including native GPU via `pollster::block_on`), us
packages/umap/nndescent/src/lib.rs:190
↓ 23 callers
Method
row
(&self, i: usize)
packages/umap/umap/src/recursive_init.rs:878
↓ 22 callers
Method
derive
Creates a derived value.
packages/utils/src/dataflow.ts:300
↓ 22 callers
Method
query
(query: string, limit: number)
packages/viewer/src/search/search.worker.ts:34
↓ 22 callers
Method
random_state
Random seed for reproducibility.
packages/umap/nndescent/src/lib.rs:149
↓ 22 callers
Method
step
* Advance the layout by `nEpochs` at the current `learningRate`, held flat (no * decay). Intended for interactive/real-time stepping; anneal by cal
packages/umap/umap-wasm/index.d.ts:214
↓ 21 callers
Method
log
Print a message to stderr if verbose is enabled.
packages/umap/nndescent/src/logger.rs:41
↓ 21 callers
Method
n_neighbors
Number of nearest neighbors. Default: 15.
packages/umap/umap/src/lib.rs:375
↓ 20 callers
Method
append
(self, row)
packages/umap/benchmark/benchmark/common.py:112
↓ 20 callers
Function
degree
Compute in-degree, out-degree, and (undirected) degree for each node from a list of edges of a directed multigraph. Edge weights, if pres
packages/backend/embedding_atlas/graph_metrics.py:278
↓ 20 callers
Method
run
* Anneal the layout to completion over the default horizon, continuing from * the current epoch, with the live `learningRate` (from `createUMAP` op
packages/umap/umap-wasm/index.d.ts:204
↓ 20 callers
Method
tau_rand_int
A fast (pseudo)-random number generator. Must exactly match the Python bitmask arithmetic. The Python code uses i64 state but performs u32-level bit
packages/umap/nndescent/src/rng.rs:30
↓ 18 callers
Function
in_degree_core
Compute directed k-core decomposition based on in-degree, returning the core number for each node. The in-degree core number of a node is
packages/backend/embedding_atlas/graph_metrics.py:396
↓ 18 callers
Method
resolve
(&self, effective_range: usize, n_vertices: usize)
packages/umap/umap/src/layout_modern.rs:418
↓ 17 callers
Function
_infer_modality
Infer the modality by inspecting the first non-null value in the series.
packages/backend/embedding_atlas/projection.py:352
↓ 17 callers
Method
clear
()
packages/viewer/src/stores/search_store.ts:192
↓ 17 callers
Function
clustering_coefficient
Compute the local clustering coefficient for each node in a directed graph. The clustering coefficient of node v measures what fraction of p
packages/backend/embedding_atlas/graph_metrics.py:565
↓ 17 callers
Method
fill
Fill the given rect as occupied
packages/viewer/src/layouts/dashboard/occupancy_map.ts:78
↓ 17 callers
Method
zeros
(width: i32, height: i32)
packages/density-clustering/density_clustering/src/array_2d.rs:33
↓ 16 callers
Function
async_map
Map the inputs by an async function, return a future that resolves to the mapped array (in correct order). Args: inputs: List of ite
packages/backend/embedding_atlas/async_map.py:35
↓ 16 callers
Method
find
Find a start location (x, y) with a rect of size (width, height) can be placed
packages/viewer/src/layouts/dashboard/occupancy_map.ts:101
↓ 15 callers
Function
file_cache_set
Store a value in the encrypted file cache. This function serializes, encrypts, and stores a value in the file cache using the provided k
packages/backend/embedding_atlas/cache.py:104
↓ 15 callers
Method
random_f32
(&mut self)
packages/umap/nndescent/src/rng.rs:140
↓ 15 callers
Method
submit
(&self, batch: Batch)
packages/umap/umap/src/gpu_layout_modern.rs:534
↓ 15 callers
Method
to_string
(x: int)
packages/backend/tests/test_async_map.py:169
↓ 14 callers
Method
neighbor_graph
Get the neighbor graph (indices, distances). Applies distance correction if using fast alternative distances.
packages/umap/nndescent/src/lib.rs:447
↓ 14 callers
Function
random_init
(n: usize, dim: usize, seed: u64)
packages/umap/umap/src/layout_modern.rs:1267
↓ 14 callers
Method
value
Creates a value node.
packages/utils/src/dataflow.ts:293
↓ 13 callers
Method
error
(text: string, options: Omit<LogMessage, "text"> = {})
packages/viewer/src/app/logging.ts:50
↓ 13 callers
Method
finish
Apply the options to `builder`, run the setup and wrap the result. `n_cols` is the number of input features, 0 for a kNN graph.
packages/umap/umap-wasm/src/lib.rs:178
↓ 13 callers
Function
gaussian_blobs
( n_per_blob: usize, dim: usize, offset: f32, seed: u64, )
packages/umap/umap/src/layout_modern.rs:1205
↓ 13 callers
Function
get
(_target, method: string | symbol)
packages/utils/src/worker_helper.ts:174
↓ 13 callers
Function
make_nn_data
Generate test data matching conftest.py nn_data fixture. Shape: (1002, 5) - 1000 random rows + 2 zero rows. Uses our TauRng for deterministic generati
packages/umap/nndescent/tests/test_nn_descent.rs:10
↓ 12 callers
Method
_updateState
(updater: (draft: Draft<InternalState>) => void, options: { cleanup?: boolean } = {})
packages/viewer/src/stores/embedding_atlas_store.ts:390
↓ 12 callers
Function
assert_approx_eq
Helper: assert two f32 values are approximately equal.
packages/umap/nndescent/tests/test_distances.rs:7
↓ 12 callers
Function
file_cache_get
Retrieve a cached value from the encrypted file cache. This function attempts to load and decrypt a previously cached value using the pr
packages/backend/embedding_atlas/cache.py:55
↓ 12 callers
Method
info
(text: string, options: Omit<LogMessage, "text"> = {})
packages/viewer/src/app/logging.ts:46
↓ 12 callers
Method
load
Load columns (and the keys, if `key` is given) in one query. If it fails, the keys and the columns are loaded * separately, so that one bad column
packages/component/src/lib/embedding_view/data/table_store.ts:274
↓ 12 callers
Function
pruned_graph
( data: &Array2<f32>, n_neighbors: usize, n_epochs: usize, )
packages/umap/umap/src/layout_modern.rs:1244
↓ 11 callers
Method
columns
Load columns of a table; the arrays are in the same order (cached; requests in the same tick are loaded together * in one query).
packages/component/src/lib/embedding_view/data/table_store.ts:77
↓ 11 callers
Method
embedding
( &self, graph: &CsrMatrix, data: Option<&Array2<f32>>, rng: &mut Xoshiro256St
packages/umap/umap/src/lib.rs:1048
↓ 11 callers
Function
sha256_hexdigest
(value: Any, scope: str | None = None)
packages/backend/embedding_atlas/cache.py:455
↓ 10 callers
Method
compatibility_layout
Use the umap-learn 0.5 layout pipeline (`true`) or the 0.6 modern pipeline (`false`: modern NNDescent parameters, spectral noise and isotropic init re
packages/umap/umap/src/lib.rs:569
↓ 10 callers
Method
destroy
()
packages/utils/svelte/mount_component.svelte.ts:13
↓ 10 callers
Method
embedding
The current embedding (CPU mirror; valid after `step`/`run_to`).
packages/umap/umap/src/optimize.rs:896
↓ 10 callers
Method
params
The current live parameters.
packages/umap/umap/src/optimize.rs:891
↓ 10 callers
Function
set
(value: T)
packages/viewer/src/utils/store.ts:138
↓ 10 callers
Method
setup_async
Build the graph + initial embedding and return a resumable [`UmapSetup`], without** running the layout optimization. Use the returned [`UmapOptimizer`
packages/umap/umap/src/lib.rs:616
↓ 9 callers
Function
adam
()
packages/umap/umap/src/gpu_layout_modern.rs:1001
↓ 9 callers
Function
csr
(n: usize, edges: &[(usize, usize, f32)])
packages/umap/umap/src/recursive_init.rs:1444
↓ 9 callers
Method
entry
(table: string, key: string | null)
packages/component/src/lib/embedding_view/data/table_store.ts:193
↓ 9 callers
Function
euclidean
(x: &[f32], y: &[f32])
packages/umap/nndescent/src/distance.rs:13
↓ 9 callers
Function
find_ab_params
Fit the curve parameters (a, b) for the output distance function: f(x) = 1 / (1 + a * x^(2b)) The target curve is: y = 1.0 if x < min_di
packages/umap/umap/src/lib.rs:1222
↓ 9 callers
Function
quantile
Linear-interpolated quantile of an unsorted slice (matches `numpy.quantile`).
packages/umap/umap/src/init.rs:8
↓ 9 callers
Function
smooth_knn_dist
Compute sigma (bandwidth) and rho (local connectivity distance) for each point via binary search, matching the UMAP smooth_knn_dist algorithm.
packages/umap/umap/src/graph.rs:278
↓ 8 callers
Function
_assert_projection_result
(result, n=NUM_SAMPLES)
packages/backend/tests/test_projection_transformers.py:110
↓ 8 callers
Method
apply
(value: any)
packages/viewer/src/charts/common/types.ts:94
↓ 8 callers
Method
gpu
Enable GPU acceleration for nearest neighbor computation. Default: false. Requires the `gpu` crate feature. Falls back to CPU if no suitable GPU is a
packages/umap/umap/src/lib.rs:526
↓ 8 callers
Function
knn_to_edges
Convert raw UMAP k-nearest-neighbor (KNN) arrays into a weighted edge list, which can then be passed into pagerank(). Raw KNN distances
packages/backend/embedding_atlas/graph_metrics.py:140
↓ 8 callers
Method
optimizer
Optimizer to use for the layout. Default: [`Optimizer::Adam`] when `compatibility_layout` is false, else [`Optimizer::Sgd`]. Adam and Momentum need th
packages/umap/umap/src/lib.rs:540
↓ 8 callers
Function
parse
(name: &str)
packages/umap/umap-wasm/src/lib.rs:50
↓ 8 callers
Method
partial_cmp
(&self, other: &Self)
packages/density-clustering/density_clustering/src/find_clusters.rs:37
↓ 8 callers
Method
query
Query the index for k nearest neighbors. @param query_data - Flat Float32Array (n_queries * n_features), row-major. @param n_queries - Number of quer
packages/umap/umap-wasm/src/lib.rs:1334
↓ 8 callers
Function
round
(alpha)
packages/umap/benchmark/benchmark/umap/report/report_lib.js:301
↓ 8 callers
Method
set_params
Update the live parameters (learning rate, repulsion, negative-sample rate, and the a/b curve parameters). Changing `negative_sample_rate` re-seeds t
packages/umap/umap/src/optimize.rs:798
↓ 8 callers
Method
tau_rand
A fast (pseudo)-random number generator for floats in [0, 1].
packages/umap/nndescent/src/rng.rs:59
↓ 7 callers
Function
_detect_mime_type
Return the MIME type of image or audio bytes based on magic bytes, or None if unknown.
packages/backend/embedding_atlas/projection.py:295
↓ 7 callers
Function
adjusted
(ms: number)
packages/viewer/src/charts/common/formatter.ts:80
↓ 7 callers
Function
assert_close
(a: f64, b: f64, tol: f64)
packages/umap/umap/src/recursive_init.rs:1452
↓ 7 callers
Function
blobs
(n: usize, centers: &[[f32; 8]], seed: u64)
packages/umap/umap/src/recursive_init.rs:1700
↓ 7 callers
Method
cmp
(&self, other: &Self)
packages/density-clustering/density_clustering/src/find_clusters.rs:25
↓ 7 callers
Function
compute_clustering_column
Compute local clustering coefficient from a DataFrame that contains a neighbors column. The neighbors column format is the same as for c
packages/backend/embedding_atlas/graph_metrics.py:632
↓ 7 callers
Function
compute_recall
Compute recall: fraction of true neighbors found.
packages/umap/nndescent/tests/test_nn_descent.rs:94
next →
1–100 of 2,512, ranked by callers