Skip to content

Instantly share code, notes, and snippets.

@BcRikko
BcRikko / 【メモ】Issueの書き方.md
Created August 6, 2015 08:50
【メモ】Issueの書き方

GitHubでIssueを書くときに気をつけることとかいろいろ

Title

タイトルだけでIssueの内容が把握できるようにする。

Issueがバグの場合は、設計要素の名称を書く。

【xx画面】xxボタン押下時にエラー など...

@yamaguchiyuto
yamaguchiyuto / jtm.py
Last active May 25, 2020 05:16
Joint Topic Models
import random
import numpy as np
from scipy.sparse import lil_matrix
class JTM:
def __init__(self, K, alpha, beta, max_iter, verbose=0):
self.K=K
self.alpha = alpha
self.beta = beta
self.max_iter = max_iter
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@yamaguchiyuto
yamaguchiyuto / ctm.py
Created March 21, 2017 07:27
Correspondence Topic Model
import random
import numpy as np
from scipy.sparse import lil_matrix
class CTM:
def __init__(self, K, alpha, beta, gamma, max_iter, verbose=0):
self.K=K
self.alpha = alpha
self.beta = beta
self.gamma = gamma
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@rtavenar
rtavenar / parallel_cdist.py
Last active April 15, 2023 15:44
Use joblib to parallelize distance computations in cdist
import numpy
from joblib.parallel import Parallel, delayed
def cdist_generic(dist_fun, dataset1, dataset2=None, n_jobs=None verbose=0,
compute_diagonal=True, *args, **kwargs):
"""Compute cross-similarity matrix with joblib parallelization for a given
similarity function.
Parameters
----------