Programming Language

Programming Language/Python

[Python] UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor.

다음과 같은 에러가 발생 (py37) parkgyeongtae-2:2_cartpole-v1 pgt0409$ python 8_cartpole-v1-confirm-model.py 8_cartpole-v1-confirm-model.py:73: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() before converting to a tensor. (Triggered internally at /Users/distiller/project/pytorch/torch/csrc/util..

Programming Language/Python

[Python] CartPole-v1, 강화학습 행동을 막대 기울기에 의존해보기

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/2_cartpole-v1 GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com ### Step 1) 아나콘다 가상환경 만들기 conda create -n py37 python=3.7 ### Step 2) 가상환경 접속 conda activate py37 ### Step 3) 라이브러리 설치 pip install gym==0.23.1 pip install pygame==2.1.2 pip ins..

Programming Language/Python

[Python] CartPole-v1, 강화학습 행동을 랜덤으로 실행해보기

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/2_cartpole-v1 GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com ### Step 1) 아나콘다 가상환경 만들기 conda create -n py37 python=3.7 ### Step 2) 가상환경 접속 conda activate py37 ### Step 3) 라이브러리 설치 pip install gym==0.23.1 pip install pygame==2.1.2 pip ins..

Programming Language/Python

[Python] No module named 'pygame' 해결방법

(py37) parkgyeongtae-2:1_cartpole-v1-example pgt0409$ python 0_cartpole-v1-example.py Traceback (most recent call last): File "0_cartpole-v1-example.py", line 3, in env = gym.make('CartPole-v1') File "/Users/pgt0409/opt/anaconda3/envs/py37/lib/python3.7/site-packages/gym/envs/registration.py", line 676, in make return registry.make(id, **kwargs) File "/Users/pgt0409/opt/anaconda3/envs/py37/lib/p..

Programming Language/Python

[Python] No module named 'gym' 해결방법

(py37) parkgyeongtae-2:1_cartpole-v1-example pgt0409$ python 0_cartpole-v1-example.py Traceback (most recent call last): File "0_cartpole-v1-example.py", line 1, in import gym ModuleNotFoundError: No module named 'gym' pip install gym

Programming Language/Python

[Python] 강화학습, CartPole-v1 기울기값에 따른 행동 변화

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/1_cartpole-v1-example GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com 9_cartpole-v1-pole-degree.py import gym import random env = gym.make('CartPole-v1') max_time_step = 100 observation = env.reset() for time_step in range(max_time_step):..

Programming Language/Python

[Python] 강화학습 예제, CartPole-v1 같은 행동 10번 반복 할 때 관찰값

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/1_cartpole-v1-example GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com ## 사용방법 ### Step 1) 아나콘다 가상환경 만들기 - conda create -n py37 python=3.7 ### Step 2) 가상환경 접속 - conda activate py37 ### Step 3) 라이브러리 설치 - pip install gym==0.23.1 - pip insta..

Programming Language/Python

[Python] 강화학습 예제, CartPole-v1 행동 이후의 관찰값 확인

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/1_cartpole-v1-example GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com ## 사용방법 ### Step 1) 아나콘다 가상환경 만들기 - conda create -n py37 python=3.7 ### Step 2) 가상환경 접속 - conda activate py37 ### Step 3) 라이브러리 설치 - pip install gym==0.23.1 - pip insta..

Programming Language/Python

[Python] 강화학습 예제, CartPole-v1 게임 조건 확인하기

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/1_cartpole-v1-example GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com ## 사용방법 ### Step 1) 아나콘다 가상환경 만들기 - conda create -n py37 python=3.7 ### Step 2) 가상환경 접속 - conda activate py37 ### Step 3) 라이브러리 설치 - pip install gym==0.23.1 - pip insta..

Programming Language/Python

[Python] 강화학습 예제, CartPole-v1 에피소드(episode) 경험해보기

https://github.com/ParkGyeongTae/dqn-atari-breakout/tree/main/1_cartpole-v1-example GitHub - ParkGyeongTae/dqn-atari-breakout Contribute to ParkGyeongTae/dqn-atari-breakout development by creating an account on GitHub. github.com ## 사용방법 ### Step 1) 아나콘다 가상환경 만들기 - conda create -n py37 python=3.7 ### Step 2) 가상환경 접속 - conda activate py37 ### Step 3) 라이브러리 설치 - pip install gym==0.23.1 - pip insta..

박경태
'Programming Language' 카테고리의 글 목록 (15 Page)