๐Ÿ‘จ‍๐Ÿซ

[AI] scikit-learn/TensorFlow ์„ค์น˜ ๋ฐฉ๋ฒ•

geum 2020. 9. 20. 15:52

โญ Anaconda ๋ฐฐํฌํŒ ์„ค์น˜ํ•  ๊ฒฝ์šฐ ์‚ฌ์ดํ‚ท๋Ÿฐ์ด ํฌํ•จ๋˜์–ด ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ์ถ”๊ฐ€ ์„ค์น˜ ํ•„์š” X

 

1. python -c "import sklearn; print(sklearn.version)"
=> ์‚ฌ์ดํ‚ท๋Ÿฐ ์„ค์น˜ ํ™•์ธ

 

2. pip install tensorflow==2.0.0(๋ณธ์ธ์ด ๊น”๊ณ  ์‹ถ์€ ๋ฒ„์ „ ์ž…๋ ฅ)

 

3. python -c "import tensorflow as tf; print(tf.version)"
=> ํ…์„œํ”Œ๋กœ์šฐ ์„ค์น˜ ํ™•์ธ

 

4. conda env create -f environment.yml
=> ํŒŒ์ผ ์†์„ฑ ํ™•์ธ ํ›„ .txt๋ฅผ ์™„์ „ํžˆ ์ง€์šฐ๊ณ  .yml๋กœ ํ™•์žฅ์ž ๋ณ€๊ฒฝ

 

5. conda activate(๋น„ํ™œ์„ฑํ™”๋Š” deactivate) python-ml
=> ์„ค์น˜ ํ›„ ์ž๋™์œผ๋กœ ์ฝ˜๋‹ค ํ™˜๊ฒฝ ์ƒ์„ฑ & ํ…์„œํ”Œ๋กœ์šฐ์™€ ํ•„์š”ํ•œ ๋‹ค๋ฅธ ํŒจํ‚ค์ง€ ์„ค์น˜


โญ Jupyter notebook/Google Colab

(Google Colab : ๊ตฌ๊ธ€์—์„œ ์ œ๊ณตํ•˜๋Š” ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ ํ™˜๊ฒฝ)

 

โœ” ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ ํŒŒ์ผ ํ™•์žฅ์ž : ipynb

โœ” ์ฃผํ”ผํ„ฐ ๋…ธํŠธ๋ถ์€ ๋‹ค๋ฅธ ์‚ฌ์ดํŠธ ์ฐธ๊ณ ํ•ด์„œ ๋” ๊ณต๋ถ€ํ•  ๊ฒƒ

 

"๋จธ์‹  ๋Ÿฌ๋‹ ๊ต๊ณผ์„œ with ํŒŒ์ด์ฌ, ์‚ฌ์ดํ‚ท๋Ÿฐ, ํ…์„œํ”Œ๋กœ" ์ฑ…์—์„œ ๋ฐœ์ทŒ