zad4 test 7
This commit is contained in:
parent
c3cdbc67a2
commit
4f90f25cea
@ -7,6 +7,11 @@ RUN gcc --version
|
|||||||
RUN apt install -y build-essential
|
RUN apt install -y build-essential
|
||||||
RUN apt install num-utils
|
RUN apt install num-utils
|
||||||
RUN apt install bc
|
RUN apt install bc
|
||||||
|
RUN apt install software-properties-common
|
||||||
|
RUN add-apt-repository ppa:deadsnakes/ppa
|
||||||
|
RUN apt install python3.7
|
||||||
|
RUN apt install python3-pip
|
||||||
|
RUN pip3 install matplotlib
|
||||||
RUN git clone https://github.com/usnistgov/SCTK.git
|
RUN git clone https://github.com/usnistgov/SCTK.git
|
||||||
WORKDIR SCTK
|
WORKDIR SCTK
|
||||||
RUN make config && make all && make check && make install && make doc
|
RUN make config && make all && make check && make install && make doc
|
||||||
|
29
jenkinsfile2
Normal file
29
jenkinsfile2
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
pipeline {
|
||||||
|
agent { dockerfile true }
|
||||||
|
stages {
|
||||||
|
stage('Cloning GIT') {
|
||||||
|
steps {
|
||||||
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s452108/s452108-mlworkshops']]])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Copy Artifacts') {
|
||||||
|
steps {
|
||||||
|
copyArtifacts filter: 'averagesrr.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful()
|
||||||
|
copyArtifacts filter: 'averagewer.txt', fingerprintArtifacts: true, projectName: 's452108-metrics', selector: lastSuccessful()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Plot') {
|
||||||
|
steps {
|
||||||
|
sh label: '', script: 'python3 plotwer.py'
|
||||||
|
sh label: '', script: 'python3 plotsrr.py'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
stage('Archive atifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts 'plotwer.png'
|
||||||
|
archiveArtifacts 'plotsrr.png'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
20
plotsrr.py
Normal file
20
plotsrr.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import csv
|
||||||
|
|
||||||
|
x = []
|
||||||
|
y = []
|
||||||
|
i = 0
|
||||||
|
|
||||||
|
with open('averagesrr.txt','r') as csvfile:
|
||||||
|
plots = csv.reader(csvfile, delimiter=' ')
|
||||||
|
for row in plots:
|
||||||
|
x.append(round(row[0], 2))
|
||||||
|
y.append(i)
|
||||||
|
i=i+1
|
||||||
|
|
||||||
|
plt.plot(x,y, label='SRR')
|
||||||
|
plt.xlabel('SRR')
|
||||||
|
plt.ylabel('Numer')
|
||||||
|
plt.title('Wykres średni SRR')
|
||||||
|
plt.legend()
|
||||||
|
plt.savefig('plotsrr.png')
|
20
plotwer.py
Normal file
20
plotwer.py
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import matplotlib.pyplot as plt
|
||||||
|
import csv
|
||||||
|
|
||||||
|
x = []
|
||||||
|
y = []
|
||||||
|
i = 0
|
||||||
|
|
||||||
|
with open('averagewer.txt','r') as csvfile:
|
||||||
|
plots = csv.reader(csvfile, delimiter=' ')
|
||||||
|
for row in plots:
|
||||||
|
x.append(round(row[0], 2))
|
||||||
|
y.append(i)
|
||||||
|
i=i+1
|
||||||
|
|
||||||
|
plt.plot(x,y, label='WER')
|
||||||
|
plt.xlabel('WER')
|
||||||
|
plt.ylabel('Numer')
|
||||||
|
plt.title('Wykres średni WER')
|
||||||
|
plt.legend()
|
||||||
|
plt.savefig('plotwer.png')
|
Loading…
Reference in New Issue
Block a user