Eigenvalues, SVD, અને Machine Learning માં High-Dimensional Vector Spaces
Singular Value Decomposition (SVD) આધુનિક representation learning, latent semantic analysis, અને vector retrieval engines નો ગાણિતિક પાયો રચે છે.
Spectral Theorem & Low-Rank Approximation
કોઈપણ નિર્દિષ્ટ મેટ્રિક્સ માટે, એક orthogonal factorization અસ્તિત્વ ધરાવે છે:
જ્યાં અને એ orthonormal matrices છે જેમાં ડાબા અને જમણા singular vectors શામેલ છે, અને એ singular values સાથે વિકર્ણ છે.
Eckart-Young-Mirsky Theorem
ઇષ્ટતમ rank- approximation જે Frobenius norm error ને ન્યૂનતમ કરે છે:
pythonimport numpy as np def truncated_svd_embedding(X: np.ndarray, k: int) -> np.ndarray: U, S, Vt = np.linalg.svd(X, full_matrices=False) # Project high-dimensional token co-occurrence matrix into k-dimensional space return U[:, :k] * np.sqrt(S[:k])
Dimensionality Reduction Dynamics
-પરિમાણીય Euclidean space માં, ત્રિજ્યા ના હાઇપરસ્ફિયરનું કદ નીચે મુજબ સ્કેલ થાય છે:
જેમ થાય છે, Gaussian distribution માં લગભગ તમામ દળ ત્રિજ્યા પર પાતળા ગોળાકાર શેલમાં કેન્દ્રિત થાય છે, જે vector search માં curse of dimensionality નું સર્જન કરે છે.