This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file makes use of the @appcallback function to connect inputs and outputs | |
# Import required libraries | |
import pandas as pd | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
from dash.dependencies import Input, Output, State | |
from jupyter_dash import JupyterDash | |
import plotly.graph_objects as go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
features =["floors", "waterfront","lat" ,"bedrooms" ,"sqft_basement" ,"view" ,"bathrooms","sqft_living15","sqft_above","grade","sqft_living"] | |
X = df[features] | |
Y = df['price'] | |
x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size=0.15, random_state=1) | |
print("number of test samples:", x_test.shape[0]) | |
print("number of training samples:",x_train.shape[0]) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.