Skip to content

Instantly share code, notes, and snippets.

@zealinux
Created December 18, 2018 04:08
Show Gist options
  • Save zealinux/010fb607b50f235e20a38db5f969ead4 to your computer and use it in GitHub Desktop.
Save zealinux/010fb607b50f235e20a38db5f969ead4 to your computer and use it in GitHub Desktop.
机器学习中的常用的函数
import numpy as np
def sigmoid(x):
return 1.0 / (1 + np.exp(-float(x)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment