카페검색 본문
카페글 본문
-
Re: 문제100. (점심시간 문제) 문제99번 코드의 dropout 비율을 20% 가 아니라 ... 2023.05.10해당카페글 미리보기
seed(777) (x_train, y_train), (x_test, y_test) = load_data(path='mnist.npz') # mnist 데이터 로드 x_train = (x_train.reshape((60000, 28 * 28))) / 255 x_test = (x_test.reshape((10000, 28 * 28))) / 255 y_train = to_categorical(y_train) y...
-
Will the new frugality born of the recession reshape a generation? 2009.12.20해당카페글 미리보기
Will the new frugality born of the recession reshape a generation? By Michele Heller Sunday, December 20, 2009; G01 Helen Wilson knows thrift. In the years after the Great Depression, she raised chickens and planted vegetables at her...
-
Re: 문제102. 답 코드를 카페에 올려주세요 2023.05.12해당카페글 미리보기
out_w col[:, :, y, x, :, :] = img[:, :, y:y_max:stride, x:x_max:stride] col = col.transpose(0, 4, 5, 1, 2, 3).reshape(N * out_h * out_w, -1) return col import numpy as np a = [ 1, 2, 0, 7, 1, 0, 0, 9, 2, 3, 2, 3, 3, 0, 1, 2, 1, 2, 2, 4...
-
Re: 문제102. 답 코드를 카페에 올려주세요 2023.05.12해당카페글 미리보기
out_w col[:, :, y, x, :, :] = img[:, :, y:y_max:stride, x:x_max:stride] col = col.transpose(0, 4, 5, 1, 2, 3).reshape(N * out_h * out_w, -1) return col array = np.array([[1,2,0,7,1,0],[0,9,2,3,2,3],[3,0,1,2,1,2],[2,4,0,1,0,1],[6,0,1,2...
-
Re: 문제114. (오늘의 마지막 문제) 위에서 생성한 모델이 수지 사진을 수지로 잘 맞추는지 확인하시오 ! 2023.05.18해당카페글 미리보기
정확도 95.5% x_train = x_train / 255.0x_train1= x_train[6].reshape(-1, 32,32,3)a= model.predict(x_train1)np.argmax(a)
-
Re: 문제102. 답 코드를 카페에 올려주세요 2023.05.12해당카페글 미리보기
7, 1, 0, 0, 9, 2, 3, 2, 3, 3, 0, 1, 2, 1, 2, 2, 4, 0, 1, 0, 1, 6, 0, 1, 2, 1, 2, 2, 4, 0, 1, 8, 1] x = np.array(a).reshape(6, 6) x2 = x.reshape(1, 1, 6, 6) result = im2col(x2, 3, 3, 3, 0) b = np.max(result, axis = 1) c = b.reshape(2, 2) c
-
Re: 예제9. (답글 요청) 위의 4개의 계산을 하기 위해서 위와 같이 4번 하드코딩 하지 말고... 2023.05.11해당카페글 미리보기
import numpy as np x = np.array([1,2,3,0,0,1,2,3,3,0,1,2,2,3,0,1]).reshape(4,4) filter2 = np.array([2,0,1,0,1,2,1,0,2]).reshape(3,3) answer = [] for i in range (len(x)-len(filter2)+1) : temp = [] for j in range (len(x[0]) - len(filter2[0...
-
Re: 문제102. 답 코드를 카페에 올려주세요 2023.05.12해당카페글 미리보기
as np k = [ 1,2,0,7,1,0,0,9,2,3,2,3,3,0,1,2,1,2,2,4,0,1,0,1,6,0,1,2,1,2,2,4,0,1,8,1] x = np.array(k).reshape(6,6) x2 = x.reshape( 1, 1, 6, 6 ) # ( 개수, 색조, 세로, 가로) result = im2col( x2, 3, 3, 3, 0 ) # 위에 im2col 함수 사용법 참조...
-
Re: 문제102. 답 코드를 카페에 올려주세요 2023.05.12해당카페글 미리보기
as np a = [1,2,0,7,1,0, 0,9,2,3,2,3, 3,0,1,2,1,2, 2,4,0,1,0,1, 6,0,1,2,1,2, 2,4,0,1,8,1] x = np.array(a).reshape(6,6) x2 = x.reshape( 1, 1, 6, 6 ) # ( 갯수, 색조, 세로, 가로) result = im2col( x2, 3, 3, 3, 0 ) # 위에 im2col 함수 사용법...
-
Reshape 늘푸른나무님 카메라 감사합니다 성능이 아주 좋와요 ^-^* 2011.12.28해당카페글 미리보기