๋ฐ์ํ
Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ์ง ๊ฐ ์์ธก ๋ถ์
- ํ๋ก๊ทธ๋๋จธ์ค
- ๋ธ๋ผ์ฐ์ ์คํ
- ๋ค์ต์คํธ๋ผ ์๊ณ ๋ฆฌ์ฆ
- ์ฐธ์กฐ ๋ณ์
- matplotlib
- 2BPerfect
- ์์ด
- ํ์ ๋ณ์
- jdbc
- ๋ฐ์ค๊ทธ๋ํ
- ์ ํ ํฌ ํ์ด์ฌ
- Do it
- ํฉํ ๋ฆฌ์ผ ์ง๋ฒ
- java
- BFS
- MacOS
- np.zeros_like
- dacon
- ์ด๊ฒ์ด ์ทจ์ ์ ์ํ ์ฝ๋ฉํ ์คํธ๋ค
- mysql
- Extended Slices
- ์๋ฐ
- ์ต์
- PYTHON
- ๋ฐฑ์ค
- sql
- DFS
- Do_it
- ์ด์ง์ ๋ณํ
Archives
- Today
- Total
๐ฆ ๊ณต๋ฃก์ด ๋์!
Dacon ์์ธ ํ์ง ๊ฒฝ์ง๋ํ...3 ๋ณธ๋ฌธ
fig, axes = plt.subplots(4, 3, figsize=(25, 15))
fig.suptitle('feature distributions per quality', fontsize= 40)
for ax, col in zip(axes.flat, train.columns[1:]):
sns.violinplot(x= 'quality', y= col, ax=ax, data=train)
ax.set_title(col, fontsize=20)
plt.tight_layout()
plt.show()
sns.color_palette("Set2")
fig, (ax1, ax2, ax3) = plt.subplots(1, 3, figsize = (30, 9))
scatter_fix = sns.histplot(data=train, x='pH', y='fixed acidity', bins=50, ax= ax1)
scatter_volatile = sns.histplot(data=train, x='pH', y='volatile acidity', bins=50, ax= ax2, hue='quality')
scatter_citric = sns.histplot(data=train, x='pH', y='citric acid', bins=50, ax=ax3, hue='quality')
scatter_fix.set_xlabel('pH', fontsize=20)
ax1.settitle()
fig.suptitle('pH & acid hist plot', fontsize = 40)
plt.show()
์๊ด๊ด๊ณ
plt.figure(figsize=(20,10))
heat_table = train.drop(['id'], axis=1).corr()
heatmap_ax = sns.heatmap(heat_table, annot=True, cmap='coolwarm')
heatmap_ax.set_xticklabels(heatmap_ax.get_xticklabels(), fontsize=15, rotation=45)
heatmap_ax.set_yticklabels(heatmap_ax.get_yticklabels(), fontsize=15)
plt.title('correlation between Wine features', fontsize=40)
plt.show()
fig, axes = plt.subplots(1, 2, figsize=(2.33 * 10, 1 * 10))
for i, ax in enumerate(axes):
if i == 0:
sns.histplot(x= 'free sulfur dioxide', y= 'total sulfur dioxide', ax= ax, hue= 'quality',data= train)
else:
sns.histplot(x= 'free sulfur dioxide', y= 'total sulfur dioxide', ax= ax, hue= 'type',data= train)
axes[0].set_title('divided with quality', fontsize=20)
axes[1].set_title('divided with type', fontsize=20)
fig.suptitle('total & free sulfur dioxide hist plot', fontsize= 40)
plt.show()
fig, axes = plt.subplots(1, 2, figsize=(2.33 * 10, 1 * 10))
for i, ax in enumerate(axes):
if i == 0:
sns.histplot(x= 'density', y= 'alcohol', ax= ax, hue= 'quality',data= train)
else:
sns.histplot(x= 'density', y= 'alcohol', ax= ax, hue= 'type',data= train)
axes[0].set_title('divided with quality', fontsize=20)
axes[1].set_title('divided with type', fontsize=20)
fig.suptitle('density & alcohol hist plot', fontsize= 40)
plt.show()
fig, axes = plt.subplots(1, 2, figsize=(2.33 * 10, 1 * 10))
for i, ax in enumerate(axes):
if i == 0:
sns.histplot(x= 'density', y= 'alcohol', bins=50, ax= ax, hue= 'quality',data= train)
ax.add_patch(patches.Ellipse((1.0385, 11.7), .001, .5, color='r', fill=False))
else:
sns.histplot(x= 'density', y= 'alcohol', bins=50, ax= ax, hue= 'type',data= train)
ax.add_patch(patches.Ellipse((1.0385, 11.7), .001, .5, color='r', fill=False))
axes[0].set_title('divided with quality', fontsize=20)
axes[1].set_title('divided with type', fontsize=20)
fig.suptitle('density & alcohol hist plot', fontsize= 40)
plt.show()
๋ฐ์ํ
'Data > Dacon' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
์ง ๊ฐ ์์ธก ๋ถ์...3 (0) | 2022.02.08 |
---|---|
์ง ๊ฐ ์์ธก ๋ถ์...2 (0) | 2022.02.08 |
์ง ๊ฐ ์์ธก ๋ถ์...1 (0) | 2022.02.03 |
Dacon ์์ธํ์ง ๊ฒฝ์ง๋ํ...2 (0) | 2021.12.07 |
Dacon ์์ธ ํ์ง ๊ฒฝ์ง๋ํ (0) | 2021.12.06 |
Comments