2 글 보임 - 1 에서 2 까지 (총 2 중에서)
-
글쓴이글
-
2022년 7월 22일 17:31 #39260
유용환참가자import pandas as pd
data = pd.read_csv('gpascore.csv') # print(data.isnull().sum())
data = data.dropna()
y = data['admit'].values x= []
for i, rows in data.iterrows(): x.append([ rows['gre'], rows['gpa'], rows['rank']]) # print(data.isnull().sum()) # print(x)
import tensorflow as tf import numpy as np
model = tf.keras.models.Sequential([ tf.keras.layers.Dense(64, activation='tanh'), tf.keras.layers.Dense(128, activation='tanh'), tf.keras.layers.Dense(1, activation='sigmoid'), ])
model.compile(optimazier='adam', loss='binary_crossentropy', metrics=['accuracy']) model.fit(np.array(x),np.array(y), epochs=10) 강의 그대로 따라해서 실행시키면 2022-07-22 17:29:32.414695: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found 2022-07-22 17:29:32.415148: 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. 2022-07-22 17:29:35.606408: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'nvcuda.dll'; dlerror: nvcuda.dll not found 2022-07-22 17:29:35.606974: W tensorflow/stream_executor/cuda/cuda_driver.cc:269] failed call to cuInit: UNKNOWN ERROR (303) 2022-07-22 17:29:35.613333: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:169] retrieving CUDA diagnostic information for host: DESKTOP-EB8EU6A 2022-07-22 17:29:35.614177: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:176] hostname: DESKTOP-EB8EU6A 2022-07-22 17:29:35.615218: I tensorflow/core/platform/cpu_feature_guard.cc:193] 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. Traceback (most recent call last): File "C:\Users108\Desktop\deep\deep learning\app.py", line 27, in <module> model.compile(optimazier='adam', loss='binary_crossentropy', metrics=['accuracy']) File "C:\Users108\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\utils\traceback_utils.py", line 67, in error_handler raise e.with_traceback(filtered_tb) from None File "C:\Users108\AppData\Local\Programs\Python\Python310\lib\site-packages\keras\engine\training.py", line 3077, in _validate_compile raise TypeError('Invalid keyword argument(s) in `compile()`: ' TypeError: Invalid keyword argument(s) in `compile()`: ({'optimazier'},). Valid keyword arguments include "cloning", "experimental_run_tf_function", "distribute", "target_tensors", or "sample_weight_mode". 이런 오류가 나오는데 어떤것이 문제인가요
-
글쓴이글
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
- 답변은 로그인 후 가능합니다.