IUM3 downloading dataset
This commit is contained in:
parent
8e3df4fef8
commit
c688871769
31
Jenkinsfile2.txt
Normal file
31
Jenkinsfile2.txt
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
node {
|
||||||
|
stage('Preparation') {
|
||||||
|
properties([
|
||||||
|
parameters([
|
||||||
|
string(
|
||||||
|
defaultValue: 'tomaszzitkiewicz',
|
||||||
|
description: 'Kaggle username',
|
||||||
|
name: 'KAGGLE_USERNAME',
|
||||||
|
trim: false
|
||||||
|
),
|
||||||
|
password(
|
||||||
|
defaultValue: '',
|
||||||
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
|
name: 'KAGGLE_KEY'
|
||||||
|
)
|
||||||
|
])
|
||||||
|
])
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Git clone') {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
|
||||||
|
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s407409/ium_407409.git']]])
|
||||||
|
}
|
||||||
|
|
||||||
|
stage('Bash') {
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
|
sh 'download_data'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
8
download_data.sh
Normal file
8
download_data.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
kaggle datasets download -d brezniczky/2019-european-parliament-election-in-poland-data
|
||||||
|
unzip -o 2019-european-parliament-election-in-poland-data.zip
|
||||||
|
shuf wyniki_gl_na_kand_po_obwodach_sheet_1.csv > data_shuf
|
||||||
|
head -n 100 vgsales_shuf > data.test
|
||||||
|
head -n 201 vgsales_shuf | tail -n 100 > data.val
|
||||||
|
head -n 1000 vgsales_shuf | tail -n 800 > data.train
|
Loading…
Reference in New Issue
Block a user