Skip to content

In this project, after extracting the data sets as csv, we tried to represent the car prices graphically and schematically by using data analysis and data visualization methods. We checked the connection of the car prices we analyzed with other data, then we created a 4-layer and 12-neuron system.

Notifications You must be signed in to change notification settings

sefakcmn00/Tensorflow_Car_Price_Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tensorflow Car Price Analysis

In this project, after extracting the data sets as csv, we tried to represent the car prices graphically and schematically by using data analysis and data visualization methods. We checked the connection of the car prices we analyzed with other data, then we created a 4-layer and 12-neuron system.

Libraries and Utilities

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sbn

Let's take a look at our top five data

dataFrame=pd.read_excel("merc.xlsx")
dataFrame.head()

image

dataFrame.describe()

image

Car Price Analysis Graph

plt.figure(figsize=(7,5))
sbn.displot(dataFrame["price"])

image

Car Price Analysis Grap

sbn.countplot(dataFrame["year"])

image

Price vs Miles

sbn.scatterplot(x="mileage",y="price",data=dataFrame)

image

Price vs Year

sbn.scatterplot(x="year",y="price",data=dataFrame)

image

Data Cleaning

Veritemizleme=dataFrame.sort_values("price",ascending=False).iloc[131:]

image

Data Training

from sklearn.preprocessing import MinMaxScaler
scaler=MinMaxScaler()
x_train=scaler.fit_transform(x_train)
x_test=scaler.transform(x_test)

from tensorflow.keras.models import Sequential
from tensorflow.keras.layers import Dense

model=Sequential()
model.add(Dense(12,activation="relu"))
model.add(Dense(12,activation="relu"))
model.add(Dense(12,activation="relu"))
model.add(Dense(12,activation="relu"))
model.add(Dense(1))
model.compile(optimizer="adam",loss="mse")

model.fit(x=x_train,y=y_train,validation_data=(x_test,y_test),batch_size=250,epochs=300)

Regression graph

plt.scatter(x=y_test,y=tahminDizisi)
plt.plot(y_test,y_test,"g-*")

image

About

In this project, after extracting the data sets as csv, we tried to represent the car prices graphically and schematically by using data analysis and data visualization methods. We checked the connection of the car prices we analyzed with other data, then we created a 4-layer and 12-neuron system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published