๐Ÿ“ AI & Bigdata/Python

๐Ÿ“ AI & Bigdata/Python

[Python] yml ํŒŒ์ผ ์ƒ์„ฑ ๋ฐ ๊ฐ€์ƒํ™˜๊ฒฝ ๋ณต์‚ฌ/์‚ญ์ œ/์ด๋™ ํ•˜๊ธฐ

๊ฐ€์ƒํ™˜๊ฒฝ ๋ช…์นญ์„ solearn์œผ๋กœ ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค ์„ค์น˜ํ•œ ํŒจํ‚ค์ง€ ํ™•์ธํ•˜๊ณ  ์‹ถ์„ ๋•Œ๋Š” yml ํŒŒ์ผ ์ƒ์„ฑํ•ด์„œ pip installํ•œ ๊ฒƒ์„ ํ™•์ธํ•  ๋•Œ ์ข‹๊ณ , ๊ธฐ์กด์˜ ๊ฐ€์ƒํ™˜๊ฒฝ ์„ค์ •์„ ๋™์ผํ•˜๊ฒŒ ๊ฐ€์ ธ๊ฐ€๊ณ  ์‹ถ์„ ๋•Œ๋Š” (๋™์ผํ•œ ํ”„๋กœ์ ํŠธ ์‹คํ–‰ํ•˜๋Š”๋ฐ ๋‹ค๋ฅธ ๊ฒฝ์šฐ ๋“ฑ) ๊ฐ€์ƒํ™˜๊ฒฝ์„ ๋ณต์‚ฌํ•˜๋Š” ๊ฒƒ์ด ๊ฐ€์žฅ ์‰ฝ๊ณ  ๋น ๋ฅด๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Œ ๊ฐ€์ƒํ™˜๊ฒฝ ์กฐํšŒ : ๊ฐ€์ƒํ™˜๊ฒฝ ๋ฆฌ์ŠคํŠธ๊ฐ€ ๋‚˜์˜ค๊ณ  ํด๋” ๋ช… ์•ž์— * ๊ฐ€ ํ‘œ์‹œ๋˜๋Š” ๊ณณ์ด ํ˜„์žฌ ํŒŒ์ด์ฌ ํ™˜๊ฒฝ์„ ๋‚˜ํƒ€๋ƒ„ conda info --envs conda info -e ๊ฐ€์ƒํ™˜๊ฒฝ ์‹คํ–‰ cmd >> activate solearn ๊ฐ€์ƒํ™˜๊ฒฝ ์ƒ์„ฑ : python 3.9๋ฒ„์ „/์•„๋‚˜์ฝ˜๋‹ค ํŒจํ‚ค์ง€๋ฅผ ๊ฐ™์ด ์„ค์น˜ conda create --name solearn python=ํŒŒ์ด์ฌ๋ฒ„์ „ [๊ฐ™์ด ์„ค์น˜ํ•  ํŒจํ‚ค์ง€๋ช…] conda create -..

๐Ÿ“ AI & Bigdata/Python

[Tensorflow] ์•„๋‚˜์ฝ˜๋‹ค ๊ฐ€์ƒํ™˜๊ฒฝ์—์„œ ํ…์„œํ”Œ๋กœ์šฐ ์„ค์น˜ํ•˜๊ธฐ

https://deep-eye.tistory.com/7 [Tensorflow] ์•„๋‚˜์ฝ˜๋‹ค ๊ฐ€์ƒํ™˜๊ฒฝ์—์„œ ํ…์„œํ”Œ๋กœ์šฐ ์„ค์น˜ํ•˜๊ธฐ 2019๋…„ ๋ง, ํ…์„œํ”Œ๋กœ์šฐ 2.0 ๋ฒ„์ „์ด ๋ฐฐํฌ๋˜๋ฉด์„œ ๋จธ์‹ ๋Ÿฌ๋‹ ๋ถ„์•ผ์—์„œ ํ…์„œํ”Œ๋กœ์šฐ์˜ ์—ด๊ธฐ๋Š” ๋”์šฑ ๋” ๋œจ๊ฑฐ์›Œ์กŒ์Šต๋‹ˆ๋‹ค. ์ƒˆ๋กœ์›Œ์ง„ ํ…์„œํ”Œ๋กœ์šฐ ์„ค์น˜๋ฅผ ์‹œ์ž‘์œผ๋กœ CNN (Convolutional Neural Network) ๊ธฐ๋ฐ˜์˜ ์ด๋ฏธ์ง€ deep-eye.tistory.com

๐Ÿ“ AI & Bigdata/Python

[Python] jupyter ์‚ฌ์šฉ Connecting to kernel ๋ฌธ์ œ

https://lemontia.tistory.com/841 [python3] jupyter ์‚ฌ์šฉ์‹œ Connecting to kernel ๋ฌธ์ œ jupyter์— ํŒŒ์ด์ฌ์„ ์‹คํ–‰ํ•ด๋ณด๋ฉด ์‹คํ–‰๋งŒ ํ•˜๊ณ ์žˆ๊ณ  ์‹ค์ œ ๊ฒฐ๊ณผ๋ฌผ์ด ๋‚˜์˜ค์ง€ ์•Š๋Š”๋‹ค ์‚ฌ์ง„์„ ๋ณด๋ฉด Connecting to kernel ์ด ๋œจ๊ณ , ์‹คํ–‰์„ ํ•˜๊ณ  ์žˆ๋Š” In[*] ์€ ๋๋‚˜์ง€ ์•Š์•˜๋‹ค. ์›นํŽ˜์ด์ง€๋ฅผ ๋ณด๋ฉด Connecting to kernel ์ด lemontia.tistory.com

๐Ÿ“ AI & Bigdata/Python

[Python] ์ฒ˜์Œ๋ถ€ํ„ฐ ์‹œ์ž‘ํ•˜๋Š” pytorch

GPU ์—ฐ์‚ฐ์„ ์ˆ˜ํ–‰ํ•ด์ค„ ์ˆ˜ ์žˆ๋„๋ก ํ•จCUDA:  NVIDIA๊ฐ€ GPU ์—ฐ์‚ฐ์„ ๊ฐ€๋Šฅํ•˜๊ฒŒ ๋งŒ๋“  API ๋ชจ๋ธcuDNN: CUDA๋ฅผ ์ด์šฉํ•œ GPU ๊ฐ€์† ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํ”„๋ ˆ์ž„์›Œํฌํ…์„œํ”Œ๋กœ์šฐํŒŒ์ดํ† ์น˜: ์†๋„๋ฉด์—์„œ ์šฐ์ˆ˜์„ค์น˜์•„๋‚˜์ฝ˜๋‹ค(์•„๋‚˜์ฝ˜๋‹ค ์„ค์น˜=> ํŒŒ์ด์ฌ)bash Anaconda ..(๊ฐ€์ƒํ™˜๊ฒฝ ์ƒ์„ฑ)conda create ..์šฐ๋ถ„ํˆฌ ์„œ๋ฒ„๋ฅผ ๊ธฐ์ค€์œผ๋กœ ํŒŒ์ด์ฌ > CUDA > cuDNN > pytorch ํŒŒ์ดํ† ์น˜์—์„œ ๊ฒฝ์‚ฌํ•˜๊ฐ•๋ฒ•torch.tensor ์ธ์ˆ˜๋กœ data, dtype, device, requires_grad ๋“ฑ

๐Ÿ“ AI & Bigdata/Python

[Python] profiling ์‚ฌ์šฉ/ ์—๋Ÿฌ ํ•ด๊ฒฐ

from pycaret.datasets import get_data dataset = get_data('juice') pr = dataset.profile_report() pr.to_file('/content/drive/MyDrive/แ„‚แ…ขแ„Œแ…กแ†จแ„‹แ…ฅแ†ธ/Kaggle/pr_report.html') pr AttributeError: 'DataFrame' object has no attribute 'profile_report'

๐Ÿ“ AI & Bigdata/Python

[Colab] pycaret ์—๋Ÿฌ ํ•ด๊ฒฐ

!pip install pycaret[full] ํ–ˆ๋Š”๋ฐ ์ฝ”๋žฉ์—์„œ ์ž๊พธ ์—๋Ÿฌ๋‚˜์„œ ์‹คํ–‰ ์•ˆ ๋˜๋Š” ํ˜„์ƒ  from pycaret.classification import * ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. xarray-einstats 0.2.2 requires numpy>=1.21, but you have numpy 1.19.5 which is incompatible. tensorflow 2.8.2+zzzcolab202207190829..

SOIT
'๐Ÿ“ AI & Bigdata/Python' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๊ธ€ ๋ชฉ๋ก