diff --git a/Jenkinsfile.stats b/Jenkinsfile.stats index 49a0328..b53b75c 100644 --- a/Jenkinsfile.stats +++ b/Jenkinsfile.stats @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + dockerfile true + } parameters { buildSelector( defaultSelector: lastSuccessful(), @@ -20,7 +22,7 @@ pipeline { } stage("Calcualte stats") { steps { - sh "./stats.sh" + // sh "./stats.sh" archiveArtifacts artifacts: "stats.txt" } } diff --git a/README.md b/README.md index 257dcb8..c889c17 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ # Run with docker `docker build -t ium .` -`docker run -e KAGGLE_USERNAME='your_kaggle_username' -e KAGGLE_KEY='' -i ium:latest` +`docker run -e KAGGLE_USERNAME='your_kaggle_username' -e KAGGLE_KEY='' -it ium:latest` diff --git a/download_data_and_process.py b/download_data_and_process.py index dc9dbdf..932c995 100644 --- a/download_data_and_process.py +++ b/download_data_and_process.py @@ -15,4 +15,6 @@ print("="*10, ' data.median() ', 10*'=') print(data.median()) print("="*10, ' data.describe(include="all") ', 10*'=') -print(data.describe(include='all')) \ No newline at end of file +print(data.describe(include='all')) + +data.describe(include="all").to_csv(r'stats.txt', header=None, index=None, sep='\t', mode='a') \ No newline at end of file diff --git a/stats.txt b/stats.txt deleted file mode 100644 index 18f55e5..0000000 --- a/stats.txt +++ /dev/null @@ -1 +0,0 @@ -0 0 0 data_train.csv