https://github.com/sefakcmn00/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.
https://github.com/sefakcmn00/tensorflow_car_price_analysis
data datatrain keras machine-learning matplotlib-pyplot pandas seaborn sklearn tensorflow
Last synced: 9 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/sefakcmn00/tensorflow_car_price_analysis
- Owner: sefakcmn00
- Created: 2022-08-17T13:13:43.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-17T13:36:41.000Z (about 3 years ago)
- Last Synced: 2025-01-13T16:48:01.223Z (10 months ago)
- Topics: data, datatrain, keras, machine-learning, matplotlib-pyplot, pandas, seaborn, sklearn, tensorflow
- Language: Jupyter Notebook
- Homepage:
- Size: 593 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```Python
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
```Python
dataFrame=pd.read_excel("merc.xlsx")
dataFrame.head()
```

```Python
dataFrame.describe()
```

### Car Price Analysis Graph
```Python
plt.figure(figsize=(7,5))
sbn.displot(dataFrame["price"])
```

### Car Price Analysis Grap
```Python
sbn.countplot(dataFrame["year"])
```

### Price vs Miles
```Python
sbn.scatterplot(x="mileage",y="price",data=dataFrame)
```

### Price vs Year
```Python
sbn.scatterplot(x="year",y="price",data=dataFrame)
```

### Data Cleaning
```Python
Veritemizleme=dataFrame.sort_values("price",ascending=False).iloc[131:]
```

### Data Training
```Python
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
```Python
plt.scatter(x=y_test,y=tahminDizisi)
plt.plot(y_test,y_test,"g-*")
```
