Fix
This commit is contained in:
parent
07d15792bf
commit
6ef6474403
@ -20,7 +20,7 @@ node {
|
|||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
|
||||||
}
|
}
|
||||||
stage('Dockerfile'){
|
stage('Dockerfile'){
|
||||||
def testImage = docker.image('s487197/ium:37')
|
def testImage = docker.image('s487197/ium:38')
|
||||||
testImage.inside{
|
testImage.inside{
|
||||||
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
|
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
|
||||||
copyArtifacts filter: 'baltimore_test.csv', projectName: 's487197-create-dataset'
|
copyArtifacts filter: 'baltimore_test.csv', projectName: 's487197-create-dataset'
|
||||||
|
@ -25,7 +25,7 @@ node {
|
|||||||
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
|
checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's487197', url: 'https://git.wmi.amu.edu.pl/s487197/ium_487197']]])
|
||||||
}
|
}
|
||||||
stage('Dockerfile'){
|
stage('Dockerfile'){
|
||||||
def testImage = docker.image('s487197/ium:37')
|
def testImage = docker.image('s487197/ium:38')
|
||||||
testImage.inside{
|
testImage.inside{
|
||||||
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
|
copyArtifacts filter: 'baltimore_train.csv', projectName: 's487197-create-dataset'
|
||||||
sh "python3 ium_train.py -epochs $EPOCHS -lr $LR -validation_split $VALIDATION_SPLIT"
|
sh "python3 ium_train.py -epochs $EPOCHS -lr $LR -validation_split $VALIDATION_SPLIT"
|
||||||
|
@ -60,7 +60,7 @@ def predict():
|
|||||||
'rmse': math.sqrt(metrics.mean_squared_error(y_test, y_predicted)),
|
'rmse': math.sqrt(metrics.mean_squared_error(y_test, y_predicted)),
|
||||||
'accuracy': scores[1] * 100
|
'accuracy': scores[1] * 100
|
||||||
}
|
}
|
||||||
row = pd.DataFrame([data])
|
row = pd.DataFrame(data)
|
||||||
if df['build'].isin([int(args.build)]).any():
|
if df['build'].isin([int(args.build)]).any():
|
||||||
df[df['build'] == args.build] = row.iloc[0]
|
df[df['build'] == args.build] = row.iloc[0]
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user