본문 바로가기
728x90
반응형

Programming/Python & R8

Chatgpt를 이용해서 python으로 강화학습 공부하기 Chatgpt를 이용해서 python으로 강화학습 예제를 만들어 보겠습니다. LC 공진회로에서 공진주파수를 알고, L(Inductor)의 용량값을 알고 있다고 가정할 때, 이에 적합한 C(capacitor )값을 찾는 예제입니다. LC 공진회로의 주파수를 구하는 공식은 다음과 같습니다. 이 수식을 이용하면 앞에서 조건에서 C(capacitor 용량 값)을 구할 수 있습니다. 여기서 공진주파수는 f = 100 [kHz], L = 6.3[uH]라고 정하면, 계산에 의해서 C = 400[nH] 가 됨을 알 수 있습니다. openai에서 chatgpt 3.5를 이용하여 다음과 같이 질문을 해 봅니다. "LC 공진회로에서 L=6.3uH, frequency=100kHz일 때, C값을 찾는 내용을 python으로 강.. 2023. 10. 9.
뤼튼 서비스를 이용한 GPT4 이용하기 오늘은 뤼튼 서비스를 이용한 GPT4를 통해서 파이썬으로 LTspice를 사용하는 내용을 다뤄보겠습니다. 뤼튼 : https://wrtn.ai/ wrtn 모두를 위한 AI 포털 뤼튼. AI 채팅부터 이미지 생성, 나만의 AI 제작까지, 언제 어디서나 생성형 AI와 함께하세요. wrtn.ai 서비스를 이용하기 위해서는 구글, 다음, 네이버, 애플 등 이메일이나 SNS 인증 통해서 사용할 수 있고 무료입니다. 채팅 창에서 GPT4를 선택한 후 다음과 같이 질문을 하였습니다. 이에 대한 답변은 다음과 같습니다. 제목: "파이썬으로 LTSpice 제어하기: 단계별 예제" 안녕하세요, 오늘은 파이썬을 이용하여 LTSpice를 제어하는 방법에 대해 알아보려고 합니다. LTSpice는 회로 시뮬레이션을 위한 강력한 .. 2023. 10. 9.
Python으로 CST STUDIO SUITE Learning Edition/Student Edition 제어하기 (Controlling CST STUDIO SUITE Learning Edition/Student Edition with Python) Student Edition이 Learning Edition으로 변경되었다. 이 에디션은 학생뿐만 아니라 개인 학습 목적으로 모든 사람이 사용할 수 있다고 한다. 물론 학습 및 학생용 에디션 라이센스 계약에 따른 상업적 목적은 제외된다. 인터넷이 연결되어 있어야 하고, 이메일 등록 후 사용 가능하다. The Student Edition has been changed to the Learning Edition. This edition is said to be available to everyone for personal learning purposes, not just students. Of course, commercial use is excluded under the Learning and Studen.. 2022. 12. 9.
Python으로 CST STUDIO SUITE 제어하기 (Control CST STUDIO SUITE with Python) Python의 win32com을 이용하여 CST STUDIO SUITE를 제어할 수 있는 예제를 올려둔다. 하기 예제는 변수를 등록하는 방법과 재질을 등록하는 법이 포함되어 있다. CST STUDIO SUITE을 잘 이용한다면 History에서 나온 내용들을 복사해서 하기 코드에 등록하면 된다. This is an example of controlling CST STUDIO SUITE using Python's win32com. The example below includes how to register a variable and how to register a material. If you are familiar with CST STUDIO SUITE, you can copy the contents f.. 2022. 11. 14.
Ansys Maxwell을 Python win32com을 이용하여 다루기 (Handling Ansys Maxwell with Python win32com) 기본적을 Ansys maxwell은 ironpython 2.7 으로 지원하고 있다. 최근에 python 3.7 이상을 지원하기 시작했다. 그런 지원이 구체화 되기 전에 win32com을 이용하여 자동화를 할 수 있는 법을 접하게 되면서 기본 코드를 몇 가지 적어본다. Ansys maxwell is basically supported by ironpython 2.7. It has recently started supporting python 3.7 and higher. Before that support materializes, I'm writing some basic code as I'm learning how to automate using win32com. 앞으로 간단한 프로젝트를 생성하고 해석하고 .. 2022. 11. 14.
CST Studio Suite에서 제공하는 python script 사용하기(Using the python script provided by CST Studio Suite) CST Studio Suite 2022 버전은 Python 3.7 ~ 3.9 버전을 지원하고 있다. 하기 예제는 이에 해당하며, 혹여 Python 3.10에서 다루고자 한다면 win32com을 이용하기 바란다. CST Studio Suite version 2022 supports Python versions 3.7 through 3.9. The examples below are for Python 3.7 and 3.9, and if you want to work with Python 3.10, Python 3.10, please use win32com. # CST Library # PYTHONPATH # Windows: \CST Studio Suite 2022\AMD64\python_cst_librari.. 2022. 11. 9.
R을 위한 개발 환경 RStudio 소개 링크 : https://posit.co/download/rstudio-desktop/ RStudio Desktop - Posit Used by millions of people weekly, the RStudio integrated development environment (IDE) is a set of tools built to help you be more productive with R and Python. It includes a console, syntax-highlighting editor that supports direct code execution. It also posit.co 빅데이터 분석을 위해 많이 사용한다. 2022. 11. 5.
Python 관련 사이트 안내 1. Python : https://www.python.org/ Welcome to Python.org The official home of the Python Programming Language www.python.org 2. Anaconda : https://www.anaconda.com/ Anaconda | The World's Most Popular Data Science Platform Anaconda is the birthplace of Python data science. We are a movement of data scientists, data-driven enterprises, and open source communities. www.anaconda.com 3. Pycharm : h.. 2022. 11. 5.
728x90
반응형