# trustworthiness

### cuml.metrics.trustworthiness(X, X_embedded, n_neighbors=5, metric='euclidean', batch_size=512) → [float](https://docs.python.org/3/builtins/functions.html#float)[[source]](https://github.com/NVIDIA/cuml/blob/93418baf5/python/cuml/cuml/metrics/trustworthiness.pyx#L31)

Expresses to what extent the local structure is retained in embedding.
The score is defined in the range [0, 1].

* **Parameters:**
  **X**
  : Acceptable formats: cuDF DataFrame, NumPy ndarray, Numba device
    ndarray, cuda array interface compliant array like CuPy

  **X_embedded**
  : Acceptable formats: cuDF DataFrame, NumPy ndarray, Numba device
    ndarray, cuda array interface compliant array like CuPy

  **n_neighbors**
  : Number of neighbors considered

  **metric**
  : Metric used to compute the trustworthiness. For the moment only
    ‘euclidean’ is supported.

  **batch_size**
  : The number of samples to use for each batch.
* **Returns:**
  **trustworthiness score**
  : Trustworthiness of the low-dimensional embedding

<!-- !! processed by numpydoc !! -->
