본문 바로가기

📂 Engineering83

[ml-agents] 윈도우에 ml-agents 환경 구축 https://youtu.be/mJh31T3aGkI 1. git으로 ml-agents 저장소 클론하기 저는 사용자 폴더(powershell을 키면 default로 설정되어있는 경로)에 git clone을 했습니다. git clone https://github.com/Unity-Technologies/ml-agents 2. python 환경 구축 아나콘다, 파이썬 뭐든 상관 없습니다. 저는 아나콘다로 ml-agents라는 이름의 파이썬 3.8버전 가상환경을 만들었다. conda create -n ml-agents python=3.8 conda activate ml-agents 3. ml-agents/ml-agents 폴더로 이동 아래 명령어를 치면 됩니다. 2번 치는 거 맞습니다. cd ml-agents .. 2022. 2. 14.
[solidity] Visibility for constructor is ignored 에러 constructor () public { owner = msg.sender; } 솔리디티 0.7부터는 constructor에 visibility를 붙이면 안 된다고 한다. 따라서 public을 지워주면 잘 컴파일 된다. constructor () { owner = msg.sender; } 2022. 1. 16.
[CS] CS50에서 배운 것 정리 1. C언어 사용자 정의 함수 // 사용자 정의 함수의 형태 출력형태 함수명(입력형태) // 예 int main(void){ float price = get_float("What's the price?\n"); printf("Your total is %.2f\n",price*1.0625); } printf는 포맷출력 함수인데, 자료형과 placeholder를 맞춰쓰면 원하는 변수를 출력할 수 있다. (파이썬의 .format()과 비슷하다) 컴파일 방법 clang ~~ 또는 make ~~ 2. 배열 // 헤더파일이라고 한다. // C로 작성된 함수를 불러온다. #include 컴파일 순서 preprocessing -> compiling -> assembling -> linking 컴파일링 과정이 따로 있긴.. 2022. 1. 11.
itertools 참고용 from itertools permutations, combinations, combinations, combinations_with_replacement combinations_with_replacement combinations permutations 2022. 1. 6.