początek zadań z lab6
All checks were successful
s449288-training/pipeline/head This commit looks good
All checks were successful
s449288-training/pipeline/head This commit looks good
This commit is contained in:
parent
8cbd80adec
commit
15afa91f97
16
lab6/Dockerfile
Normal file
16
lab6/Dockerfile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
FROM ubuntu:latest
|
||||||
|
|
||||||
|
WORKDIR /ium
|
||||||
|
|
||||||
|
RUN apt update && apt install -y python3-pip
|
||||||
|
|
||||||
|
RUN pip3 install pandas
|
||||||
|
RUN pip3 install numpy
|
||||||
|
RUN pip3 install sklearn
|
||||||
|
RUN pip3 install tensorflow
|
||||||
|
RUN pip3 install matplotlib
|
||||||
|
RUN pip3 install keras
|
||||||
|
|
||||||
|
COPY ./lego_sets.csv ./
|
||||||
|
COPY ./process_dataset.py ./
|
||||||
|
COPY ./simple_regression.py ./
|
19
lab6/Jenkinsfile
vendored
Normal file
19
lab6/Jenkinsfile
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
pipeline {
|
||||||
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
|
stages {
|
||||||
|
stage('Stage 1') {
|
||||||
|
steps {
|
||||||
|
sh 'chmod u+x ./process_dataset.py ./simple_regression.py'
|
||||||
|
echo 'Processing dataset...'
|
||||||
|
sh 'python3 process_dataset.py'
|
||||||
|
echo 'Dataset processed'
|
||||||
|
echo 'Conducting simple regression model test'
|
||||||
|
sh 'python3 simple_regression.py'
|
||||||
|
echo 'Model predictions saved'
|
||||||
|
sh 'head lego_linreg_results.csv'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user