try
This commit is contained in:
parent
410b2e9e20
commit
d1d6037d4a
@ -3,7 +3,7 @@ FROM ubuntu:latest
|
|||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y python3-pip
|
apt-get install -y python3-pip
|
||||||
|
|
||||||
RUN pip3 install --user kaggle pandas
|
RUN pip3 install --user kaggle pandas sklearn
|
||||||
|
|
||||||
ENV PATH="/root/.local/bin:${PATH}"
|
ENV PATH="/root/.local/bin:${PATH}"
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ from sklearn.model_selection import train_test_split
|
|||||||
import pandas as pd
|
import pandas as pd
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
# subprocess.run(["kaggle", "datasets", "download", "muhammadbinimran/housing-price-prediction-data", "--unzip"])
|
subprocess.run(["kaggle", "datasets", "download", "muhammadbinimran/housing-price-prediction-data", "--unzip"])
|
||||||
housing_price_dataset = pd.read_csv('housing_price_dataset.csv')
|
housing_price_dataset = pd.read_csv('housing_price_dataset.csv')
|
||||||
|
|
||||||
hp_train_test, hp_dev = sklearn.model_selection.train_test_split(housing_price_dataset, test_size=0.1)
|
hp_train_test, hp_dev = sklearn.model_selection.train_test_split(housing_price_dataset, test_size=0.1)
|
||||||
|
Loading…
Reference in New Issue
Block a user