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
from sklearn.cross_validation import train_test_split | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.metrics import f1_score | |
def badFFS(X, y, nFeatures): | |
"""Broken forward feature selection. DO NOT USE. | |
This is only to demonstrate a pitfall. | |
Arguments | |
X -- matrix containing feature vectors | |
y -- label data |
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
UPLOADID=xxxxx #Replace with the id you got from initiate-multipart-upload | |
DONE=0 | |
for i in x* | |
do | |
echo $i | |
read SIZE _ <<< $(wc -c $i) | |
((UPPER = SIZE + DONE - 1)) | |
aws glacier upload-multipart-part --account-id -\ | |
--vault-name Photos --body $i --range 'bytes $DONE-$UPPER/*'\ | |
--upload-id $UPLOADID |
NewerOlder