이 슬라이드는 창원대학교 정보통신공학과 mobile-x 학생들이 python을 주제로 2017년 하계 세미나를 진행한 내용입니다.
이 슬라이드는 파이썬의 모듈에 대해서 소개합니다.
어떤 종류의 모듈들이 있는지, 또 모듈을 어떻게 사용하는 지에 대한 내용입니다.
윈도우 환경에서 실행하였으며, Notepad++프로그램을 이용했습니다.
이 슬라이드는 창원대학교 정보통신공학과 mobile-x 학생들이 python을 주제로 2017년 하계 세미나를 진행한 내용입니다.
이 슬라이드는 파이썬의 모듈에 대해서 소개합니다.
어떤 종류의 모듈들이 있는지, 또 모듈을 어떻게 사용하는 지에 대한 내용입니다.
윈도우 환경에서 실행하였으며, Notepad++프로그램을 이용했습니다.
[2장] 딥러닝을 위한 파이썬 기초학습 | 수학 통계를 몰라도 이해할 수 있는 쉬운 딥러닝 | 반병현Byunghyun Ban
* SlideShare 오류로 빈 화면이 나올 경우 다운로드하여 이용해주시기 바랍니다.
<수학 통계를 몰라도 이해할 수 있는 쉬운 딥러닝, 2021, 생능북스> 의 수업용 ppt 자료입니다. 교재로 활용하실 경우 출판사를 통해 한 학기 분량의 PPT를 제공받으실 수 있습니다.
This document discusses different architectures for running containers and Kubernetes on AWS. It begins by showing a simple VPC configuration and then expands on it by adding availability zones, load balancing, auto scaling, and Route53 for high availability. It then discusses using ECS or EKS instead of manually launching EC2 instances. The document also provides links about Docker for beginners and how Kubernetes works on EKS, including concepts like clusters, pods, deployments, and services. It concludes by thanking the audience.
The document discusses the differences between static servers, cloud servers, Docker, and Kubernetes. It provides an overview of key concepts in cloud computing including EC2, ECS, EKS, VPCs, subnets, security groups, containers, pods, deployments, services, and nodes. Diagrams illustrate the architecture and relationships between these components in an AWS cloud environment.
AWS DEV DAY SEOUL 2017 Buliding Serverless Web App - 직방 Image ConverterSeok-joon Yun
This document discusses using Amazon Web Services (AWS) to build a serverless web application. It describes deploying an Express.js web framework application on AWS Lambda and API Gateway without a server. The application uses services like AWS Lambda, API Gateway, AWS RDS, AWS S3, and CloudFront. It provides steps for configuring the Express.js app to run on AWS Lambda and calling it through API Gateway.
Pro typescript.ch03.Object Orientation in TypeScriptSeok-joon Yun
The document discusses object-oriented programming concepts in TypeScript such as classes, inheritance, polymorphism, and mixins. It provides code examples of implementing interfaces and classes to demonstrate inheritance and composition. Mixins are discussed as a way to reuse behavior across class hierarchies by applying multiple base classes to a derived class using a mixin function. The examples show how to define mixin behaviors as classes and apply them to implementing classes to achieve multiple inheritance in TypeScript.
The document discusses new C++11 features including:
1. Uniform initialization syntax using curly braces {} which can initialize objects in a clear and consistent way compared to parentheses () or equals =.
2. Initializer lists and how they allow initializing objects from a list of values. However, initializer lists may prefer certain constructors unintuitively.
3. How uniform initialization helps prevent narrowing conversions and most vexing parse issues that could occur in C++98 code.
[KOSSA] C++ Programming - 18th Study - STL #4Seok-joon Yun
This document discusses C++ string constructors and methods. It shows how to initialize strings from char arrays and substrings, set string values, append and push back characters, and access the C string representation. It also demonstrates using stacks and queues, including pushing/popping elements and accessing the front element of a queue.
[KOSSA] C++ Programming - 17th Study - STL #3Seok-joon Yun
The document provides code examples using C++ algorithms including find, find_if, remove, remove_if, sort, merge, and accumulate. It searches vectors for values, removes elements matching conditions, sorts elements, merges sorted vectors, and calculates sums, products and other accumulations of vector elements. Each example includes the algorithm call on vector iterators and checking the results.
5. 5
카디널리티(cardinality) : 구성원수, len() 함수로 계산
집합 내 요소 존재 여부는 in 연산자로 가능
중복값 허용 불가
입력순서와 무관하게 저장되며
같은 집합으로 취급
6. 6
부분집합(subset) : 자신의 모든 구성원이 다른 집합의 구성원에 포함될 경우
초집합(superset) : 자신의 구성원으로만 다른 집합이 구성된 경우
공집합은 모든 집합의 부분집합
자기자신은 자기자신의 부분집합이면서 초집합
7. 7
파워집합(powerset) : 모든 가능한 부분집합
- 2의 cardinality 승 만큼의 부분집합을 가짐 (공집합, 자기자신 포함)
- powerset() 함수로 찾을 수 있음
8. 8
합집합(union) : 두 집합의 구성원을 모두 포함하는 집합
교집합(intersect) : 두 집합에 공통적으로 존재하는 구성원으로만 이루어진 집합
9. 9
곱집합 (카르테시안 곱) : 두 집합의 구성원을 택해 모든 가능한 쌍으로 구성된 집합
- 곱셈 연산으로 이용
- 지수연산을 이용해 자기자신과 설정한 횟수만큼의 곱도 가능
10. 10
추의 길이별 주기값을 구하는 수식
- T : 왕복 소요 시간
- L : 추의 길이
- pi, g : 상수값
길이에 따라 추의 주기 변화가 알고 싶은 경우 L을 변경해가면서 입력하면 됨
11. 11
서로 다른 3곳(중력값 g가 다름)에서 실험할 경우
- 적도 : 9.78, 북극 : 9.83, 호주 : 9.8
- 곱집합을 이용해서 모든 경우의 수 계산
12. 12
실험(experiment) : 확룰을 위한 테스트, 한 번의 실험을 시도(trial)이라 함
표본공간(S) : 모든 가능한 실험결과의 집합. ex 주사위 던지기의 표본공간 S = {1,2,3,4,5,6}
사건(E) : 표본공간의 부분집합 ex 주사위를 던져서 3이 나올 확률
14. 14
사건 A와B의 확률
- 합집합(union) : A 이거나 B일 확률
- 교집합(intersect) : A 이면서 B일 확률
- ex 주사위를 던져서(S) 소수(A)이거나 홀수(B)일 확률)
- S = {1,2,3,4,5,6}
- A = {2,3,5}
- B = {1,3,5}
15. 15
random 모듈 사용
- randint(from, to) : from에서 to 사이의 숫자를 생성
- random() : 0에서 1 사이의 부동소수점 숫자 생성
주사위를 굴려 총합이 20될때까지 몇 번을 던지는 지를 랜덤을 통해 구현
16. 16
목표로 한 점수가 최대던지기 횟수 내에 가능한지 그 여부 및 확률을 계산
- 2번 던져서 10이상이 나올 확률 : 16.67%
- 3번 던져서 20이상이 나올 확률 : 0%
17. 17
그 동안 살펴본 균일 랜덤(uniform random number)이 아니라 사건마다 확률이 다른 경우
높은 확률에 더 넓은 영역을 지정하여 수행
ex 동전이 찌그러져서 앞면이 나올 확률이 2/3이고, 뒷면이 나올 확류이 1/3인 경우
22. 22
(학번, 축구 좋아하는지 여부, 다른 운동 좋아하는지 여부) 가 저장된 csv 파일을 읽어서 그 결과를 보
여주는 벤다이어 그램을 작성하세요.
- 필자가 작성한 예제 위치
https://github.com/DevStarSJ/Study/blob/master/Blog/Python/DoingMathWithPython/files/ch05.venn.data.csv
23. 23
기대값이란 모든 경우의 수에 값에 그 확률을 곱한 값을 의미합니다.
주사위 던지기를 그 회수를 늘려가면서 기대값대로 나오는지 입증하는 프로그램을 작성하세요.
참고로 주사위의 기대값은 다음과 같습니다.
24. 24
동전의 던져서 앞면이 나오면 1을 얻고, 뒤가 나오면 1.5를 잃는 게임을 시뮬레이션하는 코드를
작성하세요.
25. 25
파이썬 표준 라이브러리 shuffle() 함수를 사용해서
트럼프카드 52장을 섞는 기능을 구현하세요.
- 정답예제 (숫자, 문자)
26. 26
정사각형안에 원이 내접해 있는 판이 있다고 가정할 경우 다트를 던져서 원안에 맞을 확률은 사
격형의 넓이 대비 원의 넓이의 비율과 같습니다. 이를 이용해서 다트 던지기를 여러번 시도하여
실제 원의 넓이와 가까워지는지 프로그램을 통해서 구현하세요.
실제 원의 면적 계산