분류 전체보기(16)
-
Python #Code_Signal_[ Step 27]
Step 27 Correct variable names consist only of English letters, digits and underscores and they can't start with a digit. Check if the given string is a correct variable name. My solution : Best soulution :
2020.04.07 -
Python #Code_Signal_[ Step 25]
Step 25 Given an array of integers, replace all the occurrences of elemToReplace with substitutionElem. My solution : def arrayReplace(inputArray, elemToReplace, substitutionElem): a=[] for i in inputArray: if i == elemToReplace: a.append(substitutionElem) else: a.append(i) return a Best solution : def arrayReplace(i, e, s): return [x if x!=e else s for x in i] Note This task require to replace ..
2020.03.20 -
Deeplearning #Keras_[ 2.1]
층(layer) - 신경망의 핵심 구성요소 - 데이터를 처리하는 필터이다. - 더 의미 있는 표현을 입력된 데이터로부터 추출해낸다. 즉, 딥러닝은 간단한 층을 연결하여 구성되어 있고, 점진적으로 데이터를 정제하는 형태로 구성되어있다. 딥러닝 모델은 데이터 정제 필터가 연속되어 있는 데이터 프로세싱을 위한 여과기와 같다. MNIST 데이터 셋을 활용한 분류 모델 (쥬피터 환경에 문제가 생겨 코드는 생략하고 추후에 포스팅) 기본 용어 1. 손실함수(loss function) : 훈련데이터에서 신경망의 성능을 측정하는 방법으로 네트워크가 옳은 방향으로 학습될 수 있도록 도와준다. 2. 옵티마이저(optimizer) : 입력된 데이터와 손실함수를 기반으로 네트워크를 업데이트하는 메커니즘 3. 훈련과 테스트 과정..
2020.03.17 -
Python #Code_Signal_[ Step 24]
Step 24 In the popular Minesweeper game you have a board with some mines and those cells that don't contain a mine have a number in it that indicates the total number of mines in the neighboring cells. Starting off with some arrangement of mines we want to create a Minesweepergame setup. My solution : Best solution : def minesweeper(matrix): r = [] for i in range(len(matrix)): r.append([]) for j..
2020.03.17 -
Python #Code_Signal_[ Step 23]
Step 23 Last night you partied a little too hard. Now there's a black and white photo of you that's about to go viral! You can't let this ruin your reputation, so you want to apply the box blur algorithm to the photo to hide its content. The pixels in the input image are represented as integers. The algorithm distorts the input image in the following way: Every pixel x in the output image has a ..
2020.02.29 -
Html #Opentutorial.org_[Basic concept]
HTML What is HTML? HTML is an Abbreviation of Hyper Tets Markup Language that is used when we make Web pages. Example of simple HTML Code About Code 1. "!doctype html" tag define the code is HTML code. 2. "head" tag and "body" tag are Parents of thier inner code and "html" tag is the biggest parents of bellow all codes. 3. "head" tag expresses the explanation of "body". 4. "body" tag is the text..
2020.02.19