Fixes for lab5, lab6
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
Some checks failed
s434704-training/pipeline/head There was a failure building this commit
This commit is contained in:
parent
eab03a1f84
commit
9aa2b7d4ad
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@ -18,7 +18,7 @@ stages {
|
||||
// sh "chmod 777 ./data_download.sh"
|
||||
// sh "./data_download.sh"
|
||||
// Zapisanie artefaktów
|
||||
archiveArtifacts "results.txt"
|
||||
archiveArtifacts "results_lab5.txt"
|
||||
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
|
||||
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"
|
||||
archiveArtifacts "MoviesOnStreamingPlatforms_updated.train"
|
||||
|
@ -23,9 +23,6 @@ test_Y = tf.convert_to_tensor(test_data[["IMDb"]])
|
||||
normalizer = preprocessing.Normalization(input_shape=[3,])
|
||||
normalizer.adapt(train_X)
|
||||
|
||||
if os.path.isdir('linear_regression'):
|
||||
model = keras.models.load_model('linear_regression')
|
||||
else:
|
||||
model = keras.Sequential([
|
||||
keras.Input(shape=(len(columns_to_use),)),
|
||||
normalizer,
|
||||
@ -40,8 +37,6 @@ else:
|
||||
|
||||
model.fit(train_X, train_Y, verbose=0, epochs=100)
|
||||
|
||||
model.save('linear_regression')
|
||||
|
||||
# Predykcja na danych testowych
|
||||
results = model.predict(test_X)
|
||||
|
||||
|
@ -27,9 +27,6 @@ train_Y = tf.convert_to_tensor(train_data[["IMDb"]])
|
||||
normalizer = preprocessing.Normalization(input_shape=[3,])
|
||||
normalizer.adapt(train_X)
|
||||
|
||||
if os.path.isdir('linear_regression'):
|
||||
model = keras.models.load_model('linear_regression')
|
||||
else:
|
||||
model = keras.Sequential([
|
||||
keras.Input(shape=(len(columns_to_use),)),
|
||||
normalizer,
|
||||
|
Loading…
Reference in New Issue
Block a user