# install dependecies
apt-get install qemu qemu-user-static binfmt-support
# download raspbian image
wget https://downloads.raspberrypi.org/raspbian_latest
# extract raspbian image
unzip raspbian_latest
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
def splitData(df, trainPerc=0.6, cvPerc=0.2, testPerc=0.2): | |
""" | |
return: training, cv, test | |
(as pandas dataframes) | |
params: | |
df: pandas dataframe | |
trainPerc: float | percentage of data for trainin set (default=0.6 | |
cvPerc: float | percentage of data for cross validation set (default=0.2) | |
testPerc: float | percentage of data for test set (default=0.2) | |
(trainPerc + cvPerc + testPerc must equal 1.0) |
These comments are based on a few years of experience working with WSL. It's based on this tutorial:
https://blog.ropnop.com/configuring-a-pretty-and-usable-terminal-emulator-for-wsl/
And are basically updates to make it more relevant.
In the past, to make the WSL run a command from cmd or somewhere else, you had to run the bash.exe
program from windows, which fired up bash (and always bash) in the WSL and made it execute a command.
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
#cloud-config | |
package_upgrade: true | |
ssh_authorized_keys: | |
- <your key> | |
packages: | |
- apt-transport-https | |
- ca-certificates | |
- curl |