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 | |
| # see https://askubuntu.com/questions/610291/how-to-install-cmake-3-2-on-ubuntu | |
| # see https://cmake.org/download/ | |
| # sudo apt-get remove cmake | |
| cd ~/workspace/ | |
| sudo apt-get install build-essential |
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
| import pandas as pd | |
| def anti_join(x, y, on): | |
| """Return rows in x which are not present in y""" | |
| ans = pd.merge(left=x, right=y, how='left', indicator=True, on=on) | |
| ans = ans.loc[ans._merge == 'left_only', :].drop(columns='_merge') | |
| return ans | |
| def anti_join_all_cols(x, y): |
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
| ____________________________________________________________________________________________________ | |
| Layer (type) Output Shape Param # Connected to | |
| ==================================================================================================== | |
| input_1 (InputLayer) (None, 32, 10) 0 | |
| ____________________________________________________________________________________________________ | |
| lstm_1 (LSTM) (None, 32, 10) 840 input_1[0][0] | |
| ____________________________________________________________________________________________________ | |
| add_1 (Add) (None, 32, 10) 0 input_1[0][0] | |
| lstm_1[0][0] | |
| ____________________________________________________________________________________________________ |
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
| sleep <- read.csv(file="sleepdata.csv", header=T, sep=";") | |
| #split end time | |
| sleep$End <- as.character(sleep$End) | |
| #get the date | |
| sleep$Date <- sapply(strsplit(sleep$End, " "),"[[",1) | |
| sleep$Date <- strptime(sleep$Date, format="%Y-%m-%d") | |
| #fix sleep quality |