본문 바로가기
오래된 글

google code prettify 예제

by pagehit 2019. 7. 17.
반응형

python 소스코드

abc
  

java 소스코드

bb
  

 

 

 

 

"""
network.py
~~~~~~~~~~
"""

#### Miscellaneous functions
def sigmoid(z):
    """The sigmoid function."""
    return 1.0/(1.0+np.exp(-z))
    
def sigmoid_prime(z):
    """Derivative of the sigmoid function."""
    return sigmoid(z)*(1-sigmoid(z))
"""
network.py
~~~~~~~~~~
"""

#### Miscellaneous functions
def sigmoid(z):
    """The sigmoid function."""
    return 1.0/(1.0+np.exp(-z))
    
def sigmoid_prime(z):
    """Derivative of the sigmoid function."""
    return sigmoid(z)*(1-sigmoid(z))
fun main() {
    println("Hello world!")
}
반응형

댓글