This commit is contained in:
Maciej Czajka 2022-04-02 14:28:42 +02:00
parent 0ba0fc2936
commit c860835800
3 changed files with 4 additions and 3 deletions

View File

@ -10,9 +10,10 @@ RUN pip3 install matplotlib
RUN pip3 install sklearn RUN pip3 install sklearn
RUN apt-get install unzip RUN apt-get install unzip
ENV CUTOFF=1000 ARG CUTOFF
ARG KAGGLE_USERNAME ARG KAGGLE_USERNAME
ARG KAGGLE_KEY ARG KAGGLE_KEY
ENV CUTOFF=${CUTOFF}
ENV KAGGLE_USERNAME=${KAGGLE_USERNAME} ENV KAGGLE_USERNAME=${KAGGLE_USERNAME}
ENV KAGGLE_KEY=${KAGGLE_KEY} ENV KAGGLE_KEY=${KAGGLE_KEY}

View File

@ -1,7 +1,7 @@
pipeline { pipeline {
agent { agent {
dockerfile { dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}" additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF}"
} }
} }
parameters { parameters {

View File

@ -8,7 +8,7 @@ dataset_operation() {
head -n $len2 all_games.csv.shuf > all_games.csv.test head -n $len2 all_games.csv.shuf > all_games.csv.test
head -n $len3 all_games.csv.shuf | tail -n $len2 > all_games.csv.dev head -n $len3 all_games.csv.shuf | tail -n $len2 > all_games.csv.dev
tail -n +$len4 all_games.csv.shuf > all_games.csv.train tail -n +$len4 all_games.csv.shuf > all_games.csv.train
cp all_games.csv /dane/all_games.csv cp all_games.csv.shuf /dane/all_games.csv
wc -l all_games.csv.* wc -l all_games.csv.*
} }