Compare commits

...

13 Commits

Author SHA1 Message Date
zgolebiewska
b06db2db4b Revert "Added environment.yml"
This reverts commit e8d40ac1cf.
2024-05-26 13:59:12 +02:00
zgolebiewska
fc008c6bd3 Revert "Update Jenkinsfile and Dockerfile"
This reverts commit 7afd9db341.
2024-05-26 13:59:12 +02:00
zgolebiewska
546e7fe2dc Revert "Update Jenkinsfile and Dockerfile"
This reverts commit 2e05521d32.
2024-05-26 13:59:11 +02:00
zgolebiewska
8023d47c4b Revert "Update Jenkinsfile and Dockerfile"
This reverts commit 5a4b79b5d5.
2024-05-26 13:59:10 +02:00
zgolebiewska
2dc8d9e218 Revert "Update Jenkinsfile and Dockerfile"
This reverts commit b31e100045.
2024-05-26 13:59:10 +02:00
zgolebiewska
8eae5ceb6f Revert "Update Jenkinsfile and Dockerfile"
This reverts commit e99d986335.
2024-05-26 13:59:09 +02:00
zgolebiewska
6528a26016 Revert "added jenkinsfile"
This reverts commit de3ff0ef9f.
2024-05-26 13:59:08 +02:00
zgolebiewska
32c580f9ba Revert "revert e99d98633512b5b021588fdd0be182ca6f785be4"
This reverts commit ac3e87e726.
2024-05-26 13:59:07 +02:00
zgolebiewska
4bd4dbd6fa Revert "update"
This reverts commit ae48fc2050.
2024-05-26 13:59:07 +02:00
zgolebiewska
1062a56730 Revert "update"
This reverts commit 28f9ae1a9c.
2024-05-26 13:59:06 +02:00
zgolebiewska
cc90764bad Revert "update"
This reverts commit 529e00d58f.
2024-05-26 13:59:05 +02:00
zgolebiewska
ef512a6c43 Revert "update"
This reverts commit 6ffc5f1f18.
2024-05-26 13:59:04 +02:00
zgolebiewska
308dc3a68f Revert "update"
This reverts commit 1a16fb2768.
2024-05-26 13:59:04 +02:00
5 changed files with 4 additions and 98 deletions

View File

@ -1,6 +1,8 @@
FROM ubuntu:latest
RUN apt-get update && apt-get install -y python3-pip unzip coreutils python3-venv
RUN apt-get update && apt-get install -y python3-pip unzip coreutils
RUN pip install --user kaggle pandas scikit-learn tensorflow
WORKDIR /app
@ -9,11 +11,4 @@ COPY ./OrangeQualityData.csv ./
COPY ./orange_quality_model_tf.h5 ./
COPY ./predictions_tf.json ./
RUN python3 -m venv venv
RUN /bin/bash -c "source venv/bin/activate"
RUN pip install tensorflow
RUN apt-get install -y python3-sklearn
CMD ["python3", "data_processing.sh"]

View File

@ -1,85 +0,0 @@
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
label 'docker'
}
}
triggers {
upstream(upstreamProjects: 's123456-create-dataset', threshold: hudson.model.Result.SUCCESS)
}
parameters {
string(
defaultValue: '--epochs 100 --batch_size 32 --learning_rate 0.01',
description: 'Parametry trenowania',
name: 'TRAINING_PARAMS'
)
}
environment {
DATASET_PROJECT = 's123456-create-dataset'
DATA_DIR = 'data'
}
stages {
stage('Clone repository') {
steps {
checkout scm
}
}
stage('Copy Dataset') {
steps {
script {
copyArtifacts(
projectName: "${env.DATASET_PROJECT}",
selector: lastSuccessful(),
target: "${env.DATA_DIR}"
)
}
}
}
stage('Set execute permission') {
steps {
script {
sh 'chmod +x data_processing.sh'
}
}
}
stage('Run shell script') {
steps {
script {
sh './data_processing.sh'
}
}
post {
success {
archiveArtifacts artifacts: 'results.txt', allowEmptyArchive: true
}
}
}
stage('Train Model') {
steps {
sh "python3 model.py ${params.TRAINING_PARAMS}"
}
}
stage('Archive Model') {
steps {
archiveArtifacts artifacts: 'orange_quality_model_tf.h5', allowEmptyArchive: true
archiveArtifacts artifacts: 'predictions_tf.json', allowEmptyArchive: true
}
}
}
post {
always {
cleanWs()
}
}
}

2
Jenkinsfile vendored
View File

@ -6,7 +6,7 @@ pipeline {
parameters {
string(
defaultValue: '10000',
name: 'CUTOFF',
name: 'CUTOFF',
description: 'Liczba wierszy do obcięcia ze zbioru danych')
}

Binary file not shown.

View File

@ -1,4 +0,0 @@
pandas
scikit-learn
tensorflow
kaggle