Compare commits
No commits in common. "79f0ab18db8e9c2f0e6bee0469561a4f90117b47" and "90ea83a9f0e6b2d2870d4c21c3b24de1cb71d80f" have entirely different histories.
79f0ab18db
...
90ea83a9f0
@ -1,7 +1,6 @@
|
|||||||
FROM ubuntu:latest
|
FROM ubuntu:latest
|
||||||
|
|
||||||
RUN apt update && apt install -y figlet
|
RUN apt update && apt install -y figlet
|
||||||
RUN apt install unzip -y
|
|
||||||
RUN apt install python3-pip -y
|
RUN apt install python3-pip -y
|
||||||
|
|
||||||
RUN pip3 install kaggle
|
RUN pip3 install kaggle
|
||||||
|
@ -10,7 +10,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:34')
|
def testImage = docker.image('s487197/ium:33')
|
||||||
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"
|
sh "python3 ium_train.py"
|
||||||
|
@ -26,7 +26,7 @@ def get_x_y(data):
|
|||||||
|
|
||||||
|
|
||||||
def predict():
|
def predict():
|
||||||
model = load_model('baltimore_model.h5')
|
model = load_model('baltimore_model3')
|
||||||
|
|
||||||
train = pd.read_csv('baltimore_train.csv')
|
train = pd.read_csv('baltimore_train.csv')
|
||||||
baltimore_data_test = pd.read_csv('baltimore_test.csv')
|
baltimore_data_test = pd.read_csv('baltimore_test.csv')
|
||||||
|
@ -48,7 +48,7 @@ def train_model():
|
|||||||
validation_split=0.2)
|
validation_split=0.2)
|
||||||
hist = pd.DataFrame(history.history)
|
hist = pd.DataFrame(history.history)
|
||||||
hist['epoch'] = history.epoch
|
hist['epoch'] = history.epoch
|
||||||
model.save('baltimore_model.h5')
|
model.save('baltimore_model3')
|
||||||
|
|
||||||
|
|
||||||
train_model()
|
train_model()
|
||||||
|
Loading…
Reference in New Issue
Block a user