From 995df105eedef923860c8b48196d11e354b6555f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pokrywka?= Date: Tue, 3 May 2022 15:14:55 +0200 Subject: [PATCH] integrate old homework wip --- .gitignore | 5 ++++- deepl.py | 3 +++ stare_zadania/Jenkinsfile | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index 078c4a0..ef2e133 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,7 @@ data.csv data_not_shuf.csv data_not_cutted.csv venv -.~lock.fake_job_postings.csv# \ No newline at end of file +.~lock.fake_job_postings.csv# +.idea +model_resutls.txt +model \ No newline at end of file diff --git a/deepl.py b/deepl.py index e3e3fe7..b5d3fb2 100644 --- a/deepl.py +++ b/deepl.py @@ -155,6 +155,9 @@ if __name__ == "__main__": for i in FN: f.write(i+"\n") f.close() + + torch.save(model, 'model') + # plt.figure(figsize=(12, 5)) # ax = plt.subplot(121) diff --git a/stare_zadania/Jenkinsfile b/stare_zadania/Jenkinsfile index 7d09333..fedd7dc 100644 --- a/stare_zadania/Jenkinsfile +++ b/stare_zadania/Jenkinsfile @@ -1,7 +1,7 @@ pipeline { agent { dockerfile { - additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t ium" + docker { image 'mikolajpokrywka/ium:0.0.0' } } } parameters { @@ -35,7 +35,7 @@ pipeline { "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) { sh 'python3 ./download_data_and_process.py' - archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv, data.csv" + archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv, fake_job_postings.csv" } } }