Skip to content

Instantly share code, notes, and snippets.

View nzw0301's full-sized avatar

Kento Nozawa nzw0301

  • Preferred Networks, Inc. / Preferred Elements, Inc.
  • Japan
  • 17:10 (UTC +09:00)
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
import numpy as np
from scipy.special import digamma
from ..utils.document import Document
class bigramTopicModel(object):
def __init__(self, K: int, docs: Document, S=10):
self.K = K
self._documents = docs.get_documents()
# install fisherman
curl -Lo ~/.config/fish/functions/fisher.fish --create-dirs git.io/fisher
fisher install omf/theme-integral
fisher pyenv
fisher rbenv
alias es "emacs --daemon"
funcsave es
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
(add-to-list 'package-archives '("org" . "http://orgmode.org/elpa/") t) ;; to install contrib
(scroll-bar-mode 0)
(require 'org)
(setq org-src-fontify-natively t)
(require 'ox-latex)
(require 'ox-bibtex)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.