Evan
@j2hoon856466
Students
131
Reviews
14
Course Rating
4.4
Posts
Q&A
1) GCP๋ด์์ SSH ํตํด ๊นํ๊ณผ ์ฐ๊ฒฐ์ main.py ํ์ผ์ด ์ฐ๋ 2) Powershell Conda ์ค์
์๋ ํ์ธ์, ์ฐ์ ์ฒซ๋ฒ์งธ ์๋ฌ์ ๊ฒฝ์ฐ 'Please move or remove them before you merge.' ์ด ๋ถ๋ถ์ ๋๊ฐ ๊นํ๋ธ ์ฒ์ ์ค์ ์, git pull์ด๋ git push๊ฐ ์๋์์ ๋ ์ข ์ข ๋ฐ์ํ๋ ์๋ฌ ์ ๋๋ค. ๋ฐ๋ผ์, ์์ฐจ์ ์ผ๋ก ์งํํ์ ์ผ ํ๊ณ , ๋๋ ๋งค๋ด์ผ๋ก 'git clean -d -f' ์ด ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํ์๋ ๊ฑธ ์ถ์ฒํฉ๋๋ค. ์ฐธ๊ณ : https://stackoverflow.com/questions/36039687/git-pull-please-move-or-remove-them-before-you-can-mergeConda ํ์ฑํ์ ๊ฒฝ์ฐ ๋ณดํต VSCode or PowerShell๋ฅผ ๋ค์ ์คํ์ํค๋ฉด ๋๋ ๊ฒฝ์ฐ๋ ์์ต๋๋ค. Conda ํ์ฑํ๊ฐ ์๋๋ฉด, conda init powershell์๋ํด๋ณด์๊ธฐ๋ฅผ ๋ฐ๋ผ๋ฉฐ, ๊ทธ ์ธ ์ฌ๋ฌ๊ฐ์ง ์๋ํ ๊ฒ์ด ์๊ธฐ๋ ํ๋ฐ, ๋ค์ ๊ธ์ ์ฐธ์กฐํ์ ์ ์งํํ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. https://stackoverflow.com/questions/64149680/how-can-i-activate-a-conda-environment-from-powershell
- 0
- 1
- 194
Q&A
5๋จ๊ณ ๊ฐ์ ์ฝ๋๊ด๋ จ(Streamlit st.data_editor() & st.column_config)
์์ค์ฝ๋ ์ฌ๋ ค๋๋ ธ์ผ๋ ํ์ธ ๋ถํ๋๋ฆฝ๋๋ค.
- 0
- 2
- 200
Q&A
5๋จ๊ณ ๊ฐ์ ์ฝ๋๊ด๋ จ(Streamlit st.data_editor() & st.column_config)
์! ์ ๊ฐ ํ์ธํด์ 11์ ์ฆ์์ ๋ค์ ๋ต๋ณ ๋๋ฆฌ๋๋ก ํ๊ฒ ์ต๋๋ค. ๋ถํธํจ์ ๋๋ ค ์ฃ์กํฉ๋๋ค.
- 0
- 2
- 200
Q&A
jupyter nbextension enable --py widgetsnbextension ์๋ฌ๋ฐ์
์ฌ๊ธฐ ์ธ์ดํธ ์ฐธ๊ณ ํ์๊ธฐ๋ฅผ ๋ฐ๋๋๋ค. https://ipywidgets.readthedocs.io/en/7.x/user_install.html ์๋ง๋ ipywidgets ์ค์น๊ฐ ์๋์ด ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
- 0
- 1
- 494
Q&A
boxcox๋ฅผ ๋ณํํ๋ ์ฝ๋ ์
์๋ ํ์ธ์, ์๋ฌ ํ์ธ ํ, ์ฝ๋๋ฅผ ์์ ํ์์ต๋๋ค. ์ ๋ณด ๊ฐ์ฌํฉ๋๋ค. ์๋์ ๊ฐ์ด ํด๋ณด์๊ณ , ์๋๋ฉด ๋ง์ํด์ฃผ์ธ์.
- 0
- 2
- 766
Q&A
๋ ๋ชฌ์์ด๋ ๋ฐ์ดํฐ ์๋ฃ์ ์์ต๋๋ค
์๋ ํ์ธ์. Chapter 3-1. pandas ๊ธฐ์ด ๋ค์ง๊ธฐ (1) ๊ฐ์์ Lemonade2016.csv ํ์ผ์ ์ ๋ก๋ ํ์์ต๋๋ค.
- 0
- 1
- 401
Q&A
ImportError: cannot import name 'plot_roc_curve
์ง๋ฌธ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.scikit-learn 1.2.1 ๋ฒ์ ์ ์ฌ์ฉํ์๋ ๋ถ๋ค์ ์ค๊ฐ์ ์ฝ๋ 2๊ฐ๋ฅผ ์์ ํด์ผ ํฉ๋๋ค.๋จผ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ๋ถ๋ฌ์ฌ ๋๋๊ธฐ์กด : from sklearn.metrics import roc_auc_score, plot_roc_curve, confusion_matrix ์์์์ : from sklearn.metrics import roc_auc_score, RocCurveDisplay, confusion_matrix๋ณ๊ฒฝ๋ฐ๋๋๋ค.def evaluate ํจ์ ์ค๊ฐ ์ฝ๋์๊ธฐ์กด : roc_plot = plot_roc_curve(ml_model, X_test, y_test, name="Scikit-Learn ROC Curve") ์์์์ : roc_plot = RocCurveDisplay.from_estimator(ml_model, X_test, y_test, name="Scikit-Learn ROC Curve") ์ผ๋ก ์์ ๋ฐ๋๋๋ค.๊ณต์๋ฌธ์ ์ฐธ์กฐ : https://scikit-learn.org/stable/modules/generated/sklearn.metrics.RocCurveDisplay.html#sklearn.metrics.RocCurveDisplay.from_estimator
- 0
- 1
- 1.7K
Q&A
๋ฐ์ดํฐ ์ ์ฒ๋ฆฌ
์๋ ํ์ธ์. ์ข์ ์ง๋ฌธ ๊ฐ์ฌํฉ๋๋ค. ์ฐ์ ๊ธฐ๋ณธ ์์น์ ํ๋ จ ๋ฐ์ดํฐ์ ํ ์คํธ ๋ฐ์ดํฐ๋ฅผ ๋ณ๊ฐ์ ๋ฐ์ดํฐ๋ก ๊ฐ์ ํ๋ ๊ฒ์ด ๋ง์ต๋๋ค. ๊ฐ์ ๋ชจ์ง๋จ์ผ๋ก ๋ฐ๋ผ๋ณด๊ณ ์ฒ๋ฆฌํ๊ฒ ๋๋ฉด, ๋ชจํ ํ์ต ์, Data Leakage์ ๋น ์ง ๊ฐ๋ฅ์ฑ์ด ์กด์ฌํฉ๋๋ค.๋ํ, train ๋ฐ์ดํฐ์ ํ๊ท ๊ฐ์ test ๋ฐ์ดํฐ์ ์ ์ฉํ๋ ๋ฐฉ๋ฒ์ด ์ค์ ๋ํ์์๋ ๋ง์ต๋๋ค. ์ด ๋ถ๋ถ์ ์ ๊ฐ ์์ ํ๋ฉด์ ์ค๋ฅ๊ฐ ์์๋ค์. ์์ ํด์ ์ฌ๋ฆฌ๋๋ก ํ๊ฒ ์ต๋๋ค. ๊ด๋ จํด์ ์ข์ ๋์ค์ปค์ ์ด ์์ผ๋ ํ์ธ ๋ฐ๋๋๋ค. https://www.kaggle.com/c/titanic/discussion/177536
- 0
- 1
- 303
Q&A
๊ฒฐ์ธก์น ์ฑ์ฐ๊ธฐ ๋ถ๋ถ ๊ด๋ จ ์ง๋ฌธ
๊ฒฐ์ธก์น ๋์น๋ ์ฌ๋ฌ๊ฐ์ง ๋ฐฉ๋ฒ์ด ์๋๋ฐ, ๊ทธ ์ค ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ธ, ๋น๋์๊ฐ ๊ฐ์ฅ ๋ง์ด ๋์จ ๊ฒ์ ๋์ฒด ํ ๊ฒ์ ๋๋ค. ์ด ๋ฐฉ๋ฒ์ด ๊ผญ ์ข์ ๋ฐฉ๋ฒ์ ์๋๋, base ๋จธ์ ๋ฌ๋ ๋ชจํ์ ๊ตฌ์ถํ ๋๋ ์ฝ๊ฒ ๊ตฌ์ถ ํ ์ ์๊ธฐ ๋๋ฌธ์ ์ฌ์ฉํ๋ค๊ณ ์๊ฐํ๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค. mode() ํจ์๋ ๋ฌธ์์ด์ ๊ฐ ๊ฐ์ ๊ณ์ฐํ ํ, ๋์ ์๋ถํฐ ์ ๋ ฌํ์ฌ ๋ฐํํฉ๋๋ค. mode()[0]์ ๊ฐ ์นผ๋ผ์์ ๊ฐ์ฅ ๋์ ๊ฐ์ ์ถ์ถํ๋ค๋ ๋ป์ ๋๋ค. ๊ฒฐ์ธก์น ๋์น๋ ์ด ๋ฌธ์ ํ๋๋ง์ผ๋ก๋ ๋ ผ๋ฌธ์ผ๋ก ๋์ฌ ์ ์๋ ๋งค์ฐ ์ด๋ ค์ด ๋ฌธ์ ์ ๋๋ค. ๋ณธ ๊ฐ์์์๋ ๊ฐ์ฅ ์ฌ์ด ๋ฐฉ๋ฒ์ ํํ๋ค๊ณ ๋ณด๋ฉด ๋ ๊ฒ ๊ฐ์ต๋๋ค. ๋ฌธ์์ด ๊ฒฐ์ธก์น์์ ๊ฐ์ฅ ํฐ ์ด๋ ค์ด ๋ฌธ์ ๋ high-cardinality ์ด์๊ฐ ์์ต๋๋ค. ๊ด๋ จ ํค์๋๋ก ๊ฒ์ํด๋ณด์๊ณ , ํน์๋ ์ดํด๊ฐ ์ด๋ ค์ฐ๋ฉด ์ถ๊ฐ๋ก ๊ฐ์๋ฅผ ์ ์ํด์ ์ฌ๋ฆฌ๋๋ก ํ๊ฒ ์ต๋๋ค.
- 0
- 1
- 364
Q&A
๋ฐ์ดํฐ์ ์์ถ ๋ฌธ์
์์ ๊ฐ์ฌํฉ๋๋ค. ์์ถ ํ์ด์ ๋ณดํต ํ๋๋ก ํ๋๋ฐ, ๋ต์ ์ฐพ์ ์ฃผ์ จ๋ค์. ๊ฐ์ฌํฉ๋๋ค. ํดํผ ์ฝ๋ฉ ๋์ธ์ ^^
- 1
- 1
- 370




