Albatta, bu erda siz NumPy matrisida PCA-ni NumPy-dan boshqa kutubxonalardan foydalanmasdan bajarish uchun ishlata oladigan Python kodi: ``python import numpy as np def pca(X): """NumPy matrisida asosiy komponent tahlilini amalga oshiradi. Args: X: NumPy ma'lumotlar matrisi. Qaytariladi: (principal_components, explained_variance_ratios) tuplesi. """ # Ma'lumotni standartlashtiring. X_mean = np.mean{\displaystyle X, axis=0) X_std = np.std{\displaystyle X, axis=0) X = (X - X_mean) / X_std # Kovarians matrisini hisoblang. C = np.{\displaystyle X.T_{\displaystyle X.T_
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence