This file contains hidden or 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
val conf: MultiLayerConfiguration = new NeuralNetConfiguration.Builder() | |
.regularization(true).l2(2e-6) | |
.seed(luckyseed) | |
.iterations(20) | |
.list(3) | |
... | |
.build(); | |
val iter: DataSetIterator = new GDataSetIteratorTrain(...) |
This file contains hidden or 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
... | |
log.info("Reload model ... ") | |
val confFromJson = MultiLayerConfiguration.fromJson(FileUtils.readFileToString(new File(conf_json))) | |
val dis = new DataInputStream(new FileInputStream(coefficient_bin)) | |
val reloadParams = Nd4j.read(dis) | |
dis.close() | |
val model = new MultiLayerNetwork(confFromJson) | |
model.init() |
This file contains hidden or 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
scriptencoding utf-8 | |
" | |
" ██╗ ██╗ ██╗ ███╗ ███╗ ██████╗ ██████╗ | |
" ██║ ██║ ██║ ████╗ ████║ ██╔══██╗ ██╔════╝ | |
" ██║ ██║ ██║ ██╔████╔██║ ██████╔╝ ██║ | |
" ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║ ██╔══██╗ ██║ | |
" ██╗╚████╔╝ ██║ ██║ ╚═╝ ██║ ██║ ██║ ╚██████╗ | |
" ╚═╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ | |
" |
This file contains hidden or 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
### | |
# Tmux config for 3.0a | |
### | |
# set the prefix of tmux from ctl-a to ctl-b | |
set-option -g prefix C-a | |
# use zsh as tmux' default shell |
This file contains hidden or 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
### | |
# Tmux config for 3.0a | |
### | |
# set the prefix of tmux from ctl-b to ctl-a | |
set-option -g prefix C-a | |
# use bash as tmux' default shell |
This file contains hidden or 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 | |
## - Ref: https://www.digitalocean.com/community/tutorials/how-to-create-a-sudo-user-on-ubuntu-quickstart | |
echo "ONLY use this script on ubuntu 16.04 -- \"lay down butcher's knife, become a Buddha on the spot\"" | |
# Adding ... | |
printf "Type to-be-created usr name: " | |
read username | |
echo "" | |
sudo adduser ${username} |
This file contains hidden or 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 | |
# - (Ubuntu 16.04 and later only) | |
set -e | |
# Checking dependencies ... | |
## - Assert prerequisites git, curl, python3, my .vimrc | |
apt-get update -y | |
apt-get install -y git python3 curl cmake | |
#git --version | |
#python3 --version |
This file contains hidden or 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 | |
git config --global user.name "LplusKira" | |
git config --global user.email [email protected] | |
git config --global core.editor vim |
This file contains hidden or 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 | |
## - Ref: https://tecadmin.net/install-latest-nodejs-npm-on-ubuntu/ | |
# Configuring ... | |
printf "Type current usr's password: " | |
read -s password | |
echo "" | |
printf "Type major version (e.g. 12): " | |
read ver | |
echo "" |
This file contains hidden or 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 | |
set -e | |
VERSION="3.0a" | |
wait_time=10 | |
my_cfg="https://gist.githubusercontent.com/LplusKira/e6c44f54b79b04b5dba9198fec5a9acd/raw/f1fab270c7abcb91f19e07d3775639f5763f23d1/.tmux.conf" | |
echo "Enter your password: " | |
read -s password | |
echo "This will remove current tmux and replace it with ver: ${VERSION}" |
OlderNewer