This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo prime-select intel | |
nohup bash -c "gnome-session-quit --force --no-prompt && sleep 3 && sudo /etc/init.d/gdm3 restart" & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy, numpy as np | |
np.random.seed(0) | |
# compute sigmoid nonlinearity | |
def sigmoid(x): | |
output = 1/(1+np.exp(-x)) | |
return output | |
# convert output of sigmoid function to its derivative | |
def sigmoid_output_to_derivative(output): |