[Math] Cartesian Product (or Descartes Product, Product Set)
·
.../Math
Cartesian Product (or Descartes Product)공집합(empty set, null set)이 아닌 여러 sets를 이용하여 새로운 set을 만드는 연산. Cartesian product는operand인 여러 집합들의각 elements를 원소(component, element)로 하는 tuple을 element(원소)로 하는 set을 반환함. 2개의 집합 $A$, $B$의 Cartesian product $A\times B$는 다음과 같음.$$A\times B= \{ (a,b) | a \in A, b\in B\}$$ $n$ 개의 집합 $A_1, A_2, \dots, A_n$의 Cartesian Product는 다음과 같이 정의됨.$$\displaystyle \prod^n_{i=1..
[ML] Time Series 란?
·
Computer
시계열 데이터라고 불리는 time series data는 쉽게 생각해서 일정한 시간 간격으로 배치된 seqence (수열) 을 가르킨다. 이는 엄밀하게 애기하면 discrete time series data라고 생각할 수 있다. continuous time series data의 경우엔 sampling interval $T_0=0$인 경우를 가르킨다. tiem series data는 순서가 의미를 가지는 sequential data의 일종이다. 2023.07.21 - [.../Math] - [Math] Sequence (수열) and Series (급수) [Math] Sequence (수열) and Series (급수) Sequence 수열, 열 이라고 불림. numbers나 objects 들이 순서를 ..
[Python] for statement
·
Programming
for statement는 loop를 위한 control structure의 대표격이다.더보기https://ds31x.blogspot.com/2023/07/basic-control-structures-and-control.html Basic : Control Structures and Control FlowControl Structure 프로그램을 구성하는 statement (=executable code)들이 실행되는 순서를 제어하는 방법을 abstraction한 것이 control structure이며 이를 통해 실행순서를 제어하는 것을 flow c...ds31x.blogspot.comPython에서는 iterable 객체 (주로 collection type의 객체들)이 가지고 있는 item들을 it..
[Python] Regular Expression : re 요약
·
Programming
Regular Expression : re 요약 정규표현식(正規表現式, Regular Expression)은 문자열을 처리하는 방법 중의 하나로 특정한 조건의 substring(문자열)을 '검색'하거나 '치환'하는 과정을 특정 문자열의 pattern을 기술하는 expression을 이용하여 매우 간편하게 처리 할 수 있도록 해준다. 주요 Tasks RE를 통해 수행되는 것은 크게 다음의 세가지임. searching splitting replacing 이들 모두 특정 substring pattern에 대한 matching을 사용한다. 즉, matching, searching, splitting, replacing을 하는 방법에 대한 이해를 하면 RE를 효과적으로 사용가능하다. compiled pattern..
[Python] str : Overloaded Operators
·
Programming
Concatenation + opeartor combines its two operands. 다음과 같이, 두 문자열이 붙은 새로운 문자열을 반환한다. >>> a = 'test1' + 'test2' >>> a 'test1test1' + opeartor does not add any space between two operand strings to concate, contrast to the case of print method. print 함수에서 argument 사이에 space가 포함되는 것과 달리 문자열 그대로 사용하여 결합만이 이루어짐. Duplication 곱하기가 아닌 앞의 operand 인 str이 뒤의 operand로 주어진 숫자만큼 반복되어 concatenation이 됨. >>> 'one..
[Python] Basic Methods of String
·
Programming
Basic Methods of String 프로그래밍에서 가장 많이 다루는 데이터는 text라고 할 수 있다.Raw data에서 str(string)은 numerical data 이상으로 가장 애용되는 데이터임.preprocessing 등을 통해 해당 text data는 numerical data로 변경(주로 vector)되는 경우가 매우 많음.과학이나 연구분야가 아닌 경우, 사실상 str문자열이 가장 많이 애용되는 raw data type이라고 볼 수 있음.이 문서에서는Python이 기본적으로 제공하는 str class에서 다양한 method들의 사용법을 간략히 정리한다. str은 immutable이므로, method 결과로 기존 str 객체의 value가 갱신되지 않으며새로운 str 객체가 생성됨.대..