[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.tistory.com/427 [Programming] Control Flow 와 Control StructureAbstraction(추상화)을 통한 이해프로그래밍 언어에서 Abstraction은 복잡한 세부 사항을 숨기고 핵심 개념만 드러내는 프로그래밍의 기본 원칙임. Control Flow와 Control Structure는 프로그램의 Execution Pathds31x.tistory.comPython에서는 iterable 객체 (주로 collection type의 객체들)이 가지고 있는 item들을 iterate(순회)하는 용도로 사용된다. 프로그래밍을 배울 때, 구구단 출력과 같은 ..
[Python] Regular Expression : re 요약
·
Programming
Regular Expression : re 요약 정규표현식(正規表現式, Regular Expression)은문자열을 처리하는 방법 중의 하나로특정한 조건의 substring(문자열)을 'searching(검색)'하거나 'substition(치환)'하는 과정을특정 문자열의 pattern을 기술하는 expression(표현식)을 이용하여매우 간편하게 처리 할 수 있도록 해준다.0. 주요 Tasksre를 통해 수행되는 것은 크게 다음의 세가지임.searchingsplittingreplacing이들 모두 특정 substring pattern에 대한 matching을 사용한다:matching되는 문자열 검색(존재유무 및 위치)matching되는 문자열 기준으로 분리mathcing되는 문자열 변경 즉, matchi..
[Python] str: Overloaded Operators
·
Programming
Operands의 Data type에 따라 연산자의 동작이 달라지는 대표적인 예임.Overloaded Operators주어진 operands(피연산자)의 종류에 따라 operator의 동작이 달라지는 것을 가리켜 overloaded opeartor라고 부름https://ds31x.tistory.com/36 [Python] overloading, overriding, and special methods일반적인 Overloading overloading (or over-load, 과적?)이란 같은 이름의 function, method, operator를 여러 개로 중복 정의하는 것을 가르킴. function의 경우, call시 입력되는 arguments가 할당될 parameters를 다르게ds31x.tist..
[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 객체가 생성됨.대..