Jenkins
This commit is contained in:
parent
52d2aa8a79
commit
37cdcc397f
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -1,5 +1,6 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
string (
|
string (
|
||||||
defaultValue: 'vskyper',
|
defaultValue: 'vskyper',
|
||||||
@ -29,5 +30,10 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
stage('Archive artifacts') {
|
||||||
|
steps {
|
||||||
|
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,7 +1,25 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Install the Kaggle API
|
||||||
pip install kaggle
|
pip install kaggle
|
||||||
|
# Download the dataset from Kaggle
|
||||||
kaggle datasets download -d mlg-ulb/creditcardfraud
|
kaggle datasets download -d mlg-ulb/creditcardfraud
|
||||||
|
|
||||||
|
# Unzip the dataset
|
||||||
unzip -o creditcardfraud.zip
|
unzip -o creditcardfraud.zip
|
||||||
|
# Remove the zip file
|
||||||
|
rm creditcardfraud.zip
|
||||||
|
|
||||||
|
# Shuffle the dataset
|
||||||
|
shuf creditcard.csv > creditcard_shuf.csv
|
||||||
|
# Remove the original dataset
|
||||||
|
rm creditcard.csv
|
||||||
|
|
||||||
|
# Split the dataset into training and testing
|
||||||
|
head -n 10000 creditcard_shuf.csv > creditcard_train.csv
|
||||||
|
tail -n +10001 creditcard_shuf.csv > creditcard_test.csv
|
||||||
|
|
||||||
|
# Create a directory for the data
|
||||||
|
mkdir -p data
|
||||||
|
# Move the datasets to the data directory
|
||||||
|
mv creditcard_shuf.csv creditcard_train.csv creditcard_test.csv data/
|
Loading…
Reference in New Issue
Block a user