Data Scientist 옌

매일 발전하는 IT문제해결사

728x90

전체 글 344

[DeepLearning.AI TensorFlow Developer] C2W1-Assignment: Using CNN's with the Cats vs Dogs Dataset

Week 1: Using CNN's with the Cats vs Dogs Dataset Welcome to the 1st assignment of the course! This week, you will be using the famous Cats vs Dogs dataset to train a model that can classify images of dogs from images of cats. For this, you will create your own Convolutional Neural Network in Tensorflow and leverage Keras' image preprocessing utilities. You will also create some helper functions..

[DeepLearning.AI TensorFlow Developer] C1W4-Assignment: Predicting the next word

Week 4: Handling Complex Images - Happy or Sad Dataset In this assignment you will be using the happy or sad dataset, which contains 80 images of emoji-like faces, 40 happy and 40 sad. Create a convolutional neural network that trains to 99.9% accuracy on these images, which cancels training upon hitting this training accuracy threshold. import matplotlib.pyplot as plt import tensorflow as tf im..

[DeepLearning.AI TensorFlow Developer] C1W3-Assignment: Improve MNIST with Convolutions

Week 3: Improve MNIST with Convolutions In the videos you looked at how you would improve Fashion MNIST using Convolutions. For this exercise see if you can improve MNIST to 99.5% accuracy or more by adding only a single convolutional layer and a single MaxPooling 2D layer to the model from the assignment of the previous week. You should stop training once the accuracy goes above this amount. It..

[DeepLearning.AI TensorFlow Developer] C1W2-Assignment: Implementing Callbacks in TensorFlow using the MNIST Dataset

Week 2: Implementing Callbacks in TensorFlow using the MNIST Dataset In the course you learned how to do classification using Fashion MNIST, a data set containing items of clothing. There's another, similar dataset called MNIST which has items of handwriting -- the digits 0 through 9. Write an MNIST classifier that trains to 99% accuracy and stops once this threshold is achieved. In the lecture ..

[DeepLearning.AI TensorFlow Developer] C1W1-Assignment: Housing Prices

Week 1 Assignment: Housing Prices In this exercise you'll try to build a neural network that predicts the price of a house according to a simple formula. Imagine that house pricing is as easy as: A house has a base cost of 50k, and every additional bedroom adds a cost of 50k. This will make a 1 bedroom house cost 100k, a 2 bedroom house cost 150k etc. How would you create a neural network that l..

[백준] 18단계: 스택

1. [10828] 스택 정수를 저장하는 스택을 구현한 다음, 입력으로 주어지는 명령을 처리하는 프로그램을 작성하시오. 명령은 총 다섯 가지이다. push X: 정수 X를 스택에 넣는 연산이다. pop: 스택에서 가장 위에 있는 정수를 빼고, 그 수를 출력한다. 만약 스택에 들어있는 정수가 없는 경우에는 -1을 출력한다. size: 스택에 들어있는 정수의 개수를 출력한다. empty: 스택이 비어있으면 1, 아니면 0을 출력한다. top: 스택의 가장 위에 있는 정수를 출력한다. 만약 스택에 들어있는 정수가 없는 경우에는 -1을 출력한다. import sys N = int(sys.stdin.readline()) stack_list = list() for _ in range(N): order = sys.s..

[백준] 17단계: 심화2

1. [1037] 약수 양수 A가 N의 진짜 약수가 되려면, N이 A의 배수이고, A가 1과 N이 아니어야 한다. 어떤 수 N의 진짜 약수가 모두 주어질 때, N을 구하는 프로그램을 작성하시오. N = int(input()) divider_list = list(map(int, input().split())) divider_list = sorted(divider_list) print(divider_list[0] * divider_list[-1]) 2. [25192] 인사성 밝은 곰곰이 알고리즘 입문방 오픈 채팅방에서는 새로운 분들이 입장을 할 때마다 곰곰티콘을 사용해 인사를 한다. 이를 본 문자열 킬러 임스는 채팅방의 기록을 수집해 그 중 곰곰티콘이 사용된 횟수를 구해 보기로 했다. ENTER는 새로운 사..

[백준] 16단계: 조합론

1. [15439] 베라의 패션 베라는 상의 N 벌과 하의 N 벌이 있다. i 번째 상의와 i 번째 하의는 모두 색상 i를 가진다. N 개의 색상은 모두 서로 다르다. 상의와 하의가 서로 다른 색상인 조합은 총 몇 가지일까? N = int(input()) print(N*(N-1)) 2. [24723] 녹색거탑 Naver D2를 아시나요? D2는 For Developers, By Developers의 약자로, 개발자들을 위해 개발자들이 직접 만들어 가고 있는 네이버 개발자 지원 프로그램입니다. 네이버가 축적한 기술과 지식을 공유하고, 외부 개발자들을 지원해 대한민국 개발자 역량 강화를 이끌고, 이를 통해 업계 전체와 네이버가 함께 성장하는 선순환 구조를 만들고자 합니다. 사실 네이버의 개발자 지원은 오랜 ..

[백준] 15단계: 약수, 배수와 소수 2

1. [1934] 최소공배수 두 자연수 A와 B에 대해서, A의 배수이면서 B의 배수인 자연수를 A와 B의 공배수라고 한다. 이런 공배수 중에서 가장 작은 수를 최소공배수라고 한다. 예를 들어, 6과 15의 공배수는 30, 60, 90등이 있으며, 최소 공배수는 30이다. 두 자연수 A와 B가 주어졌을 때, A와 B의 최소공배수를 구하는 프로그램을 작성하시오. T = int(input()) for _ in range(T): A, B = map(int, input().split()) AA, BB = A, B while BB != 0: # 최대공약수 구하기 AA = AA % BB AA, BB = BB, AA print(A*B//AA) # 각 수 곱하여 최대공약수로 나눠주기 2. [13241] 최소공배수 정수..

[백준] 14단계: 집합과 맵

1. [10815] 숫자 카드 숫자 카드는 정수 하나가 적혀져 있는 카드이다. 상근이는 숫자 카드 N개를 가지고 있다. 정수 M개가 주어졌을 때, 이 수가 적혀있는 숫자 카드를 상근이가 가지고 있는지 아닌지를 구하는 프로그램을 작성하시오. N = int(input()) n_list = list(map(int, input().split())) n_list.sort() M = int(input()) m_list = list(map(int, input().split())) def binary_search(cards, target, start, end): while end >= start: mid = (start + end) // 2 if target == cards[mid]: return mid elif ta..

[백준] 13단계: 정렬

※ 1~5번은 이전에 풀었던 문제라 생략합니다. 6. [1427] 소트인사이드 배열을 정렬하는 것은 쉽다. 수가 주어지면, 그 수의 각 자리수를 내림차순으로 정렬해보자. num = str(input()) num_list = [] for i in num: num_list.append(i) num_list = sorted(num_list, reverse=True) print(''.join(num_list)) 7. [11650] 좌표 정렬하기 2차원 평면 위의 점 N개가 주어진다. 좌표를 x좌표가 증가하는 순으로, x좌표가 같으면 y좌표가 증가하는 순서로 정렬한 다음 출력하는 프로그램을 작성하시오. N = int(input()) num_list = [] for _ in range(N): num_list.app..

[백준] 12단계: 브루트 포스

1. [2798] 블랙잭 카지노에서 제일 인기 있는 게임 블랙잭의 규칙은 상당히 쉽다. 카드의 합이 21을 넘지 않는 한도 내에서, 카드의 합을 최대한 크게 만드는 게임이다. 블랙잭은 카지노마다 다양한 규정이 있다. 한국 최고의 블랙잭 고수 김정인은 새로운 블랙잭 규칙을 만들어 상근, 창영이와 게임하려고 한다. 김정인 버전의 블랙잭에서 각 카드에는 양의 정수가 쓰여 있다. 그 다음, 딜러는 N장의 카드를 모두 숫자가 보이도록 바닥에 놓는다. 그런 후에 딜러는 숫자 M을 크게 외친다. 이제 플레이어는 제한된 시간 안에 N장의 카드 중에서 3장의 카드를 골라야 한다. 블랙잭 변형 게임이기 때문에, 플레이어가 고른 카드의 합은 M을 넘지 않으면서 M과 최대한 가깝게 만들어야 한다. N장의 카드에 써져 있는 숫..

728x90