Fixes for lab5, lab6

This commit is contained in:
Wojciech Jarmosz 2021-05-15 03:22:57 +02:00
parent d392692d85
commit f970648895
3 changed files with 4 additions and 3 deletions

3
Jenkinsfile vendored
View File

@ -11,13 +11,14 @@ stages {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}" ]) {
// Skrypt z lab 5 - prosta sieć neuronowa
// sh 'python3 linear_regression.py'
sh 'python3 linear_regression.py'
// Wygenerowanie podziału danych
sh 'python3 script.py'
// Stare skrypty bashowe do podziału zbioru
// sh "chmod 777 ./data_download.sh"
// sh "./data_download.sh"
// Zapisanie artefaktów
archiveArtifacts "results.txt"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.dev"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.test"
archiveArtifacts "MoviesOnStreamingPlatforms_updated.train"

View File

@ -5,7 +5,7 @@ pipeline {
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
string(name: 'epochs', description: 'epochs number', defaultValue: '100')
string(name: 'verbose', description: 'verbose number' defaultValue: '0')
string(name: 'verbose', description: 'verbose number', defaultValue: '0')
buildSelector(defaultSelector: lastSuccessful(), description: 'Use latest build', name: 'BUILD_SELECTOR')
}
stages {

View File

@ -46,6 +46,6 @@ else:
results = model.predict(test_X)
# Zapis danych do pliku
with open("results.txt", 'w') as file:
with open("results_lab5.txt", 'w') as file:
for result in results:
file.writelines(str(result[0]) + "\n")