https://github.com/hcui2/DIMSUM
Tip revision: 2a0214f000449bc12d2697bdb09ba6ab4b1a7a94 authored by Hongzhu Cui on 25 September 2019, 16:30:37 UTC
Initial Commit
Initial Commit
Tip revision: 2a0214f
utils.py
"""
-----------------------------------------------------------------------
Some helper functions.
-----------------------------------------------------------------------
"""
import math
def sigmoid(x):
return 1 / (1 + math.exp(-x))