Код: Выделить всё
%%time
# Isomap
isomap = Isomap(n_neighbors=10, n_components=2)
x_isomap = isomap.fit_transform(x_train_subset)
print('Isomap finished!')
# PCA
pca = PCA(n_components=2)
x_pca = pca.fit_transform(x_train_subset)
print('PCA finished!')
fig, ax = plt.subplots(1, 2, figsize=(15,6))
ax[0].scatter(x_pca[:, 0], x_pca[:, 1], c=y_train_subset, cmap=plt.cm.Spectral, s=10)
ax[0].set_title('PCA Dimensionality Reduction')
ax[1].scatter(x_isomap[:, 0], x_isomap[:, 1], c=y_train_subset, cmap=plt.cm.Spectral, s=10)
ax[1].set_title('Isomap Dimensionality Reduction')
plt.show()
Я вернулся и продолжил свой проект на моем основном ПК, и вдруг через несколько секунд это ядро выходит из строя. Имейте в виду, что мой компьютер намного мощнее, чем мой MacBook, и у него в 4 раза больше оперативной памяти, чем у моего компьютера. Я не понимаю, почему это происходит.
Мне интересно, может быть, это как-то связано с моей настройкой WSL2? Я ничего не понимаю, не знаю, помогите..
ЖУРНАЛ:
Код: Выделить всё
17:02:41.779 [error] Disposing session as kernel process died ExitCode: undefined, Reason: 2025-01-07 17:01:18.985520: E external/local_xla/xla/stream_executor/cuda/cuda_fft.cc:477] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
WARNING: All log messages before absl::InitializeLog() is called are written to STDERR
E0000 00:00:1736262079.073161 20413 cuda_dnn.cc:8310] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
E0000 00:00:1736262079.096104 20413 cuda_blas.cc:1418] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2025-01-07 17:01:19.283714: I tensorflow/core/platform/cpu_feature_guard.cc:210] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Подробнее здесь: https://stackoverflow.com/questions/793 ... rnel-crash