Викторина, связанная с руководством · Средний Уровень

Метрики расстояния в тесте по машинному обучению

Проверяет, как евклидовы, манхэттенские, косинусные, расстояния Махаланобиса и Хэмминга кодируют сходство и почему масштабирование признаков может изменить результаты поиска ближайших соседей.

Связанные направляющие путиМетрики расстояния в машинном обучении
Вопрос 1 из 8

Why did the delivery routing example choose Manhattan distance over Euclidean distance?

Предварительный просмотр каждого вопроса8 вопросы

Ответы и пояснения появляются по мере прохождения теста.

  1. Why did the delivery routing example choose Manhattan distance over Euclidean distance?
    • Because vehicles must travel along street grids rather than in straight lines
    • Because Manhattan distance is always more accurate
    • Because Manhattan distance requires less computation for any dataset
    • Because Euclidean distance cannot handle numeric data
  2. What does cosine distance measure, as defined in the guide, that makes it suited to recommendation systems?
    • The absolute difference in rating counts
    • The number of matching categorical labels
    • The angle between two vectors rather than their magnitude
    • The square of the Euclidean distance
  3. What additional information does Mahalanobis distance incorporate that Euclidean distance does not?
    • The alphabetical order of feature names
    • The correlations and differing variances between features via the covariance matrix
    • The total number of rows in the dataset
    • The categorical labels of each point
  4. Согласно руководству, для какого типа данных особенно подходит расстояние Хэмминга?
    • Continuous numeric data with large ranges
    • Only image pixel data
    • Only time-series financial data
    • Equal-length categorical or string data, such as genetic sequences
  5. Какой этап предварительной обработки, как говорится в руководстве, обычно требуется перед вычислением евклидова расстояния между объектами?
    • Removing all categorical variables
    • Standardizing or scaling the features so no single feature dominates
    • Converting all features to Hamming-compatible strings
    • Reducing the dataset to two dimensions only
  6. What phenomenon does the guide describe that undermines the assumption that Euclidean distance is always a safe default?
    • Переобучение
    • Gradient vanishing
    • The curse of dimensionality, where pairwise distances become similar in high dimensions
    • Утечка этикетки
  7. How is cosine distance computed, per the technical section?
    • As one minus the cosine similarity, the normalized dot product of two vectors
    • As the sum of absolute differences per dimension
    • As the square root of the covariance matrix
    • As the count of mismatched positions between two vectors
  8. According to the futureOutlook section, how does metric learning relate to distance metrics in modern deep learning systems?
    • It eliminates the need for any distance function
    • It only applies to Manhattan distance
    • It replaces Hamming distance in all genetic applications
    • A neural network learns an embedding space where a classical distance, like cosine or Euclidean, becomes meaningful after training