Skrypt
This commit is contained in:
parent
6f3e894561
commit
bff39667bf
30
skrypt.sh
30
skrypt.sh
@ -1,18 +1,12 @@
|
||||
kaggle datasets download -d shree1992/housedata
|
||||
unzip -o housedata.zip
|
||||
|
||||
!wc -l data.csv
|
||||
data = pd.read_csv('data.csv')
|
||||
|
||||
!head -n -1 data.csv | shuf > data.csv.shuf
|
||||
|
||||
!head -n 460 data.csv.shuf > data.csv.test
|
||||
!head -n 920 data.csv.shuf | tail -n 460 > data.csv.dev
|
||||
!tail -n +920 data.csv.shuf > data.csv.train
|
||||
|
||||
!rm data.csv.shuf
|
||||
!wc -l data.csv*
|
||||
|
||||
data_test = pd.read_csv('data.csv.test')
|
||||
data_dev = pd.read_csv('data.csv.dev')
|
||||
data_train = pd.read_csv('data.csv.train')
|
||||
kaggle datasets download -d shree1992/housedata
|
||||
unzip -o housedata.zip
|
||||
|
||||
wc -l data.csv
|
||||
|
||||
head -n -1 data.csv | shuf > data.csv.shuf
|
||||
|
||||
head -n 460 data.csv.shuf > data.csv.test
|
||||
head -n 920 data.csv.shuf | tail -n 460 > data.csv.dev
|
||||
tail -n +920 data.csv.shuf > data.csv.train
|
||||
|
||||
rm data.csv.shuf
|
||||
|
Loading…
Reference in New Issue
Block a user