Gorio Tech Blog search

Field-aware Factorization Machines (FFM) 설명 및 xlearn 실습

|

본 글의 전반부에서는 먼저 Field-aware Factorization Machines for CTR prediction 논문을 리뷰하면서 본 모델에 대해 설명할 것이다. 후반부에서는 간단한 xlearn코드 역시 소개할 예정이다. 논문의 전문은 이곳에서 확인할 수 있다. 1. Field-aware Factorization Machines for CTR prediction 논문 리뷰 1.0.Abstract CTR 예측과 같은 크고 희소한 데이터셋에 대해 FFM은 효과적인 방법이다. 본...

Comment  Read more

Explain Yourself! Leveraging Language Models for Commonsense Reasoning

|

이 글에서는 2019년 6월 Nazneen Fatema Fajani 등이 발표한 Explain Yourself! Leveraging Language Models for Commonsense Reasoning 논문을 살펴보도록 한다. 이 논문에서는 CoS-E라는 상식 설명문(Common Sense Explanations)에 관한 데이터셋을 만들어 공개했다. 여기에서 찾아볼 수 있다(논문의 링크로 들어가보면 저장 위치가 바뀌었다고 한다). 중요한 부분만 적을 예정이므로 전체가 궁금하면 원 논문을 찾아...

Comment  Read more

파이썬 Error 처리

|

1. Introduction 파이썬에서 에러를 처리하고 관리하는 데에는 다양한 이유가 있다. 실제 Application 상에서 에러가 발생하지 않도록 개발과 테스트 단계에서 미리 에러를 식별하고 수정하는 것은, 어떤 프로그램을 만들 때 굉장히 중요한 과정이라고 할 수 있다. 기본적으로 파이썬에서는 BaseException이라는 class를 통해 에러를 관리하도록 도와준다. 이 class는 모든 내장 exception들의 base class이다. 만약...

Comment  Read more

파이썬 압축 모듈 간단 예시

|

1. zlib 모듈 import zlib long_text = b"who are you" * 1000 # 압축하기 compressed = zlib.compress(long_text) # 압축 풀기 decompressed = zlib.decompress(compressed) # 동일한지 확인 print(long_text == decompressed) True 2. gzip 모듈 위에서 사용한 zlib 모듈과 동일하게 compress, decompress 메서드를 사용한다. 파일을 열 때는 open 메서드를 이용하면 된다. 여는...

Comment  Read more

파이썬 collections, heapq 모듈 설명

|

1. collections 모듈 1.1. collections.Counter 객체 collections 모듈에서 가장 기본을 이루는 class는 collections.Counter이다. 이 class에 argument로 반복 가능한 (iterable) 객체를 지정하거나 dictionary와 같은 mapping 객체를 지정하면 Counter 객체를 생성할 수 있다. 예를 들어보면, import collections counter = collections.Counter([1, 2, 3, 2]) # counter = collections.Counter({1: 1, 2: 2, 3: 1})...

Comment  Read more