clean code
This commit is contained in:
parent
14b40aae3a
commit
752a43377e
1
Jenkinsfile
vendored
1
Jenkinsfile
vendored
@ -35,7 +35,6 @@ pipeline {
|
||||
steps {
|
||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||
sh "kaggle datasets download muhammadbinimran/housing-price-prediction-data --unzip"
|
||||
sh 'chmod 777 ./data_processing.py'
|
||||
sh "python3 ./data_processing.py ${params.CUTOFF}"
|
||||
}
|
||||
|
@ -1,8 +1,8 @@
|
||||
import sklearn
|
||||
from sklearn.model_selection import train_test_split
|
||||
from sklearn.preprocessing import OneHotEncoder
|
||||
import pandas as pd
|
||||
import subprocess
|
||||
|
||||
subprocess.run(["kaggle", "datasets", "download", "muhammadbinimran/housing-price-prediction-data", "--unzip"])
|
||||
housing_price_dataset = pd.read_csv('housing_price_dataset.csv')
|
||||
|
||||
hp_train_test, hp_dev = train_test_split(housing_price_dataset, test_size=0.1)
|
||||
|
Loading…
Reference in New Issue
Block a user