using reticulate with plaidML

Published by onesixx on

https://onesixx.com/reticulate/

Install reticulate package

R

Install miniconda

R

정보확인

default path는 ~/Library/r-miniconda
default env는 ~/Library/r-miniconda/envs/r-reticulate
phython은 default env내에 ~/Library/r-miniconda/envs/r-reticulate/bin/python

R

miniconda 설정

conda init 은 ~/.bashrc 에 아래 내용을 추가

Shell

Terminal을 restart하고, 가상환경을 활성화해서 잘 적용됐는지 확인

Shell
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/home/oschung_skcc/.local/share/r-miniconda/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
    eval "$__conda_setup"
else
    if [ -f "/home/oschung_skcc/.local/share/r-miniconda/etc/profile.d/conda.sh" ]; then
        . "/home/oschung_skcc/.local/share/r-miniconda/etc/profile.d/conda.sh"
    else
        export PATH="/home/oschung_skcc/.local/share/r-miniconda/bin:$PATH"
    fi
fi
unset __conda_setup
# <<< conda initialize <<<

설치된 miniconda update

R
Shell

User conda(virtual)env 설치 (sixxDL)

특정 conda env을 복제(clone)해 conda env 생성

Shell
$ conda create --name [NEW_ENV_NAME] --clone [ENV_NAME]

update pip

pip가 pip를 업그레드 한다. pip install –upgrade pip
python -m과 같이 쓰면, 실행할 모듈인 pip를 sys.path에서 찾아서 실행시키는 것

Shell

참고> conda 사용

R

User env구성 및 사용

R

패키지 추가설치

conda_install()

R
example
Shell

macos : install plaidML

R
example

Keras설치

R

macos : use plaidML

R

TEST

R

Categories: DeepLearning

onesixx

Blog Owner

guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x