def sigmoid_kernel(X, Y=None, gamma=None, coef0=1):
    X, Y = check_pairwise_arrays(X, Y)
    if gamma is None:
        gamma = 1.0 / X.shape[1]

    K = safe_sparse_dot(X, Y.T, dense_output=True)
    K *= gamma
    K += coef0
    np.tanh(K, K)   # compute tanh in-place
    return K
Play previous item from media list.
dataset/ETHPy150Open scikit-learn/scikit-learn/sklearn/metrics/pairwise.py/sigmoid_kernel--crossover with--dataset/ETHPy150Open disqus/playa/playa/lib/vlc.py/MediaListPlayer.previous