سلام
شبتون بخیر
توی import کردن ماژول keras به مشکل خوردم (ide=pycharm)
AttributeError: module 'keras.utils.generic_utils' has no attribute 'populate_dict_with_module_objects'
ممنون میشم راهنمایی بفرمایید
سلام
ظاهرا باگ نسخه جدید keras هست.
تا زمانی که رفع بشه میتونید keras رو downgrade کنید به نسخه های پایین تر.
import tensorflow as tf
from tensorflow import keras
()model=keras.sequential
به این صورت ایمپورت کردن مشکلی نداشت و اجرا شد و یک سری ارور داد ولی اجرا شد میخواشتم بینم مشکلی در فرآیند ایجاد نمیکنه ارور ها رو توی پیام پایینی میزارم
2021-06-04 17:39:10.027667: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-06-04 17:39:10.027878: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
---------------------------
2021-06-04 17:39:12.284660: I tensorflow/stream_executor/platform/default/dso_loader.cc:53] Successfully opened dynamic library nvcuda.dll
2021-06-04 17:39:12.589939: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1733] Found device 0 with properties:
pciBusID: 0000:0a:00.0 name: GeForce GTX 850M computeCapability: 5.0
coreClock: 0.9015GHz coreCount: 5 deviceMemorySize: 4.00GiB deviceMemoryBandwidth: 26.82GiB/s
2021-06-04 17:39:12.590678: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found
2021-06-04 17:39:12.591260: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublas64_11.dll'; dlerror: cublas64_11.dll not found
2021-06-04 17:39:12.591806: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cublasLt64_11.dll'; dlerror: cublasLt64_11.dll not found
2021-06-04 17:39:12.592374: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cufft64_10.dll'; dlerror: cufft64_10.dll not found
2021-06-04 17:39:12.592918: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'curand64_10.dll'; dlerror: curand64_10.dll not found
2021-06-04 17:39:12.593443: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusolver64_11.dll'; dlerror: cusolver64_11.dll not found
2021-06-04 17:39:12.593977: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cusparse64_11.dll'; dlerror: cusparse64_11.dll not found
2021-06-04 17:39:12.594929: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudnn64_8.dll'; dlerror: cudnn64_8.dll not found
2021-06-04 17:39:12.595053: W tensorflow/core/common_runtime/gpu/gpu_device.cc:1766] Cannot dlopen some GPU libraries. Please make sure the missing libraries mentioned above are installed properly if you would like to use GPU. Follow the guide at https://www.tensorflow.org/install/gpu for how to download and setup the required libraries for your platform.
Skipping registering GPU devices...
2021-06-04 17:39:12.596009: I tensorflow/core/platform/cpu_feature_guard.cc:142] This TensorFlow binary is optimized with oneAPI Deep Neural Network Library (oneDNN) to use the following CPU instructions in performance-critical operations: AVX AVX2
To enable them in other operations, rebuild TensorFlow with the appropriate compiler flags.
2021-06-04 17:39:12.596454: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1258] Device interconnect StreamExecutor with strength 1 edge matrix:
2021-06-04 17:39:12.596639: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1264]
2021-06-04 17:39:13.377860: I tensorflow/compiler/mlir/mlir_graph_optimization_pass.cc:176] None of the MLIR Optimization Passes are enabled (registered 2)
2443/2443 [==============================] - 57s 22ms/step - loss: 1.5256e-04
RMSE : 1013.2143055717125
C:\Users\a\Desktop\py_train\perjoct 2 (DL)\final dl pred.py:160: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: https://pandas.pydata.org/pandas-docs/stable/user_guide/indexing.html#returning-a-view-versus-a-copy
valid['prediction']=prediction