본문 바로가기
[백준/파이썬] No.11654 아스키 코드 No.11654 아스키 코드 문제알파벳 소문자, 대문자, 숫자 0-9중 하나가 주어졌을 때, 주어진 글자의 아스키 코드값을 출력하는 프로그램을 작성하시오.입력알파벳 소문자, 대문자, 숫자 0-9 중 하나가 첫째 줄에 주어진다.출력입력으로 주어진 글자의 아스키 코드 값을 출력한다.예제 입력 1A예제 출력 1 65 Solution print(ord(input())) 2020. 4. 11.
[Project] 빅데이터를 활용한 퇴사 원인 분석 의미 있는 첫 학기의 첫 프로젝트. 프로젝트 같이 한 원우님께서는 미리 양해 구하고 업로드 합니다. 2020. 4. 10.
[Python 기초] 클래스 (Class) 클래스(Class) 클래스를 사용하는 이유는 추상화된 현실의 개념을 구체적인 파이썬 코드로 표현하기 위해서 사용한다. 고양이 도면 → 클래스 (class) / 고양이 도면으로 만든 고양이 → 인스턴스 (Instance) 인스턴스 (Instance) : 색, 이름, 나이 등 구체적인 값을 가짐 속성(Property, Attribute) : 색, 이름, 나이 등 행동(Method) : 잔다, 먹는다, 꾹꾹이를 한다 등 인스턴스(Instance)와 객체(Object) "객체 a는 고양이의 인스턴스이다" 인스턴스라는 말은 특정 객체(a)가 어떤 클래스(고양이)의 객체인지를 관계 위주로 설명할 때 사용한다. 상속 고양이 도면에서 개념들을 '상속' 받아 비슷한 고양이들을 만든다. → 하위 클래스 (Sub Class.. 2020. 4. 6.
[Probability] Probability - Part 2 Probability Probability - Part 2 Section 2.4 : Probability of an Event Definitions 2.9 Probability : an event A is the sum of the weights of all sample points in A. If A1, A2, A3... is a sequence of multually exclusive events, then Exampe 2.24 A coin is tossed twice. What is the probability that at least 1 head occurs? S = {HH, HT, TH, TT} E = {HH, HT, TH} A ={TT} 1-(1/4)=3/4 Rule 2.3 Exampe 2.2.. 2020. 4. 5.
[Text Mining] Text Reprocessing Text Reprocessing A taxonomy of text preprocessing tasks Text Normalization Tokenizing (segmenting) words Normalizing word formats Segmenting sentences Tokenization : Task of segmenting running text into words Type VS Token Word types : different words Word tokens : multiple occurrences of words in a text Simple Tokenization in UNIX STEP 1. tokenizing STEP 2. Sorting Punctuation Issues Word-inte.. 2020. 4. 2.
[Probability] Probability - Part 1 Probability Probability - Part 1 Definitions Sample Space : the set of all possible outcome of a statistical experiment Event : a subset of a sample space Comlement : an event A with respect to S is the subset of all elements of S that are not in A Intersection : the event contating all elements that are common to A and B Pemutation : an arrangement of all or part of a set of objects. Theorem Th.. 2020. 4. 1.
[Text Mining] Introduction to Text Mining Text Mining 1. Introduction to Text Mining Data mining Data mining : a process of automatically extracting meaningful, useful, previously unknown and ultimately comprehensible information from large databases. Descriptive: Understanding underlying processes or behavior Predictive: Understanding underlying processes or behavior Why Data Mining? :We are drowning in data, but starving for knowledge.. 2020. 3. 30.
LeetCode 28. Implement strStr() - Python LeetCode28. Implement strStr() Implement strStr(). Return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. Example 1: Input: haystack = "hello", needle = "ll" Output: 2 Example 2: Input: haystack = "aaaaa", needle = "bba" Output: -1 Solution class Solution(object): def strStr(self, haystack, needle): """ :type haystack: str :type needle: str :rtyp.. 2020. 3. 28.
[Probability] 1. Probability - Problems Probability Probability Problems Concepts Probability: a numerical description of how likely an eventis to occur or how likely it is that a proposition is true. (Wikipedia) Combination: A combination is a selection of objects where order is not important. Permutation: A permutation is an arrangement of objects in a definite order. Problems 1. In how many different ways can a true-false test cons.. 2020. 3. 27.
2020 Spring Semester Courses 1. Data Visualization 2. Text Mining 3. Probability & Analytics 1. Data Visualization Project midterm evaluation 50%, final evaluation 50% 2. Text Mining Midterm exam 40%, final exam 40%, assignment 10%, Participation 10% 3. Probability & Analytics Final exam 80%, Assignment 20%, 2020. 3. 26.
[Python 기초] 문자열 (String) 문자열이란? 문자열(String)이란 문자, 단어 등으로 구성된 문자들의 집합을 의미한다. 따옴표로 둘러싸여 있으면 모두 문자열이라고 보면 된다. 예를 들어 다음과 같은 것들이 문자열이다. "Life is too short, You need Python" "a" "123" 문자열 인덱싱과 슬라이싱 #문자열 인덱싱이란? 인덱싱이란 무엇인가를 '가리킨다'라는 의미입니다. 인덱싱은 문자열을 배열처럼 쓰는 것으로 이해하면 됩니다. "파이썬은 0부터 숫자를 센다." >>> a = "Life is too short" a[0]:'L', a[1]:'i', a[2]:'f', a[3]:'e', a[4]:' ', ... 0부터 숫자를 센다는 것이 처음에는 익숙하지 않겠지만, 위 예에서 볼 수 있듯이 a[번호]는 문자열 안의.. 2020. 3. 22.