-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
45 lines (37 loc) · 1.05 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/usr/bin/bash
# This script is used to setup the environment for the project
# It is assumed that the user has already installed the required packages
# and has a working version of
# Insall the required packages
pip install -r requirements.txt
# Download the required data and unzip it
echo "This script will download the required data for the project from kaggle"
echo "Please make sure you have a kaggle account and have installed the kaggle cli"
echo "wish to continue? (y/n)"
read ans
if [ $ans == "y" ]
then
kaggle competitions download -c zillow-prize-1
echo "Download complete"
unzip zillow-prize-1.zip &
pid=$!
spin[0]="-"
spin[1]="\\"
spin[2]="|"
spin[3]="/"
echo -n "[unzipping the data] ${spin[0]}"
while [ kill -0 $pid ]
do
for i in "${spin[@]}"
do
echo -ne "\b$i"
sleep 0.1
done
done
mv zillow-prize-1/* ./Zillow/dataset/
rm jigsaw-toxic-comment-classification-challenge.zip
rm -r zillow-prize-1
else
echo "Download aborted"
exit 1
fi