STICKY-AI

Artificial Intelligence / Machine Learning / Deep Learning


  • Home

  • About

  • Archives

  • Tags

  • Sitemap

Python. functools.reduce()

Posted on 2020-04-14 | In Python

functools.reduce(function, iterator, initializer = None)

Read more »

Python. Asterisk(*) Operator

Posted on 2020-04-14 | In Python

Python은 타 언어에 비해 다양한 연산을 지원합니다. 그 중에서도 Asterisk(*) Operator는 단순 연산을 포함한 여러 기능을 포함하고 있습니다.

Read more »

Python. Lambda Expression

Posted on 2020-04-12 | In Python

Lambda Expression는 코드가 식의 형태를 띄고 있어 ‘람다 표현식(이하 람다)’으로 표현되며, 익명 함수를 만들 때 사용됩니다. 익명 함수란, 함수 선언 시 함수명을 정의해야 하는 기존 함수와는 달리, 함수명 없이도 정의할 수 있는 함수를 의미합니다. 기존의 함수는 함수가 정의되는 순간 메모리에 올라가 호출되기를 기다립니다. 반면, 람다는 실행 이후 메모리 영역에서 제거됩니다. 따라서, 한 번만 사용될 함수라면 람다로 정의하는 것이 좋습니다.

Read more »

Python. Generator

Posted on 2020-04-03 | In Python

Generator(제너레이터)는 Iterator를 반환하는 함수이며, yield 키워드를 사용하여 생성할 수 있습니다. 함수 내에서 yield를 사용하면 함수는 제너레이터를 반환합니다. 제너레이터는 모든 결과값을 메모리에 저장하지 않기 때문에 좋은 성능을 낼 수 있습니다.

Read more »

Python. Iterator

Posted on 2020-03-29 | In Python

파이썬 내장 함수인 iter와 next는 Iterable한 객체를 다룰 때 사용됩니다. iter은 __iter__ 함수를 호출하고, next는 __next__ 함수를 호출합니다. iter는 Iterable한 객체에 대한 Iterator를 반환하고, next는 Iterator의 요소를 차례대로 반환합니다.

Read more »

Python. itertools.chain()

Posted on 2020-03-26 | In Python

itertools.chain(*iterables)

Read more »

Python. itertools.accumulate()

Posted on 2020-03-26 | In Python

itertools.accumulate(iterable: Iterable[, func])

Read more »

Python. itertools.product()

Posted on 2020-03-24 | In Python

itertools.product(*args(iterator), repeat)

Read more »

Python. itertools.combinations()

Posted on 2020-03-23 | In Python

itertools.combinations(iterators, r)

Read more »

Python. itertools.permutations()

Posted on 2020-03-19 | In Python

itertools.permutations(iterators, r)

Read more »
1 2 3 4
Jinhyeok Park (STICKY-AI)

Jinhyeok Park (STICKY-AI)

STICKY-AI Github Page

33 posts
6 categories
80 tags
RSS
© 2020 Jinhyeok Park (STICKY-AI)
Powered by Jekyll
Theme - NexT.Muse