본문 바로가기

전체 글

(245)
scikit learn - OneHotEncoder https://scikit-learn.org/stable/modules/preprocessing.html#preprocessing-categorical-features 5.3. Preprocessing data — scikit-learn 0.21.3 documentation 5.3. Preprocessing data The sklearn.preprocessing package provides several common utility functions and transformer classes to change raw feature vectors into a representation that is more suitable for the downstream estimators. In general, lea..
cygwin + zsh + oh-my-zsh(agnoster 테마) 1. cygwin installer에서 zsh를 설치한다. 2. cygwin 시작 설정을 수정한다. 3. cygwin을 시작한 후, oh-my-zsh 를 설치한다. https://github.com/robbyrussell/oh-my-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" via wget 4. 테마를 agnoster로 변경한다. (단, 폰트를 추가적으로 설정해주어야 아이콘들을 제대로 확인할 수 있음.) ~/.zshrc 를 열어 ZSH_THEME="agnoster" 로 변경 source ~/.zshrc 로 적용 폰트가 제대로 보여지지 않으면 하기 폰트 다운로..
python tkinter 레퍼런스 https://pythonspot.com/tk-file-dialogs/https://likegeeks.com/python-gui-examples-tkinter-tutorial/#Adding-a-button-widgethttp://zetcode.com/gui/tkinter/layout/https://github.com/Dvlv/Tkinter-By-Example
jython - Protex SDK 예제 모음 Jython 2.7.1과 Protex SDK를 이용하여 간단한 예제를 구현해 보았다.보고서를 만드는 프로그램을 만들어야 하는데 Java가 익숙지 않아 손에 익은 Python 문법 및 모듈을 사용하기 위하여 Jython을 선택하였다. protex_server.py # -*- coding: utf-8 -*- import os import sys import protex_sdk protex_sdk.load_protex_sdk(r"Z:\libs\Protex-7.8.2-SDK-V7.0\lib") from com.blackducksoftware.sdk.protex.client.util import ProtexServerProxy from com.blackducksoftware.sdk.protex.util impor..
Jython 2.7.1 최근에 Java SDK를 사용하여 프로그래밍을 해야할 일이 있었는데 혹시 파이썬을 같이 사용할 수 있는지 궁금하여 찾아보니 Python의 Java 구현물이 있었다. Jython 이며, 현 시점에서 최신 릴리즈 버전은 2.7.1 (Link) 이다.Jython 인터프리터에서 Java 클래스를 로드하여 바로 사용할 수 있다.자세한 내용은 다음의 링크를 확인한다. 좀 오래동안 업데이트가 되지 않았지만, 내가 사용하려는 Protex SDK는 별 문제없이 동작하였다. http://www.jython.org/currentdocs.htmlhttps://jythonbook-ko.readthedocs.io/en/latest/index.html Java와 Jython 와의 통합은 다음의 링크를 확인한다.https://jyt..
python clang references Find all references of specific function declaration in libclang (Python)https://stackoverflow.com/questions/37194718/find-all-references-of-specific-function-declaration-in-libclang-python External Clang Examplehttps://clang.llvm.org/docs/ExternalClangExamples.html Parsing C++ in Python with Clanghttps://eli.thegreenplace.net/2011/07/03/parsing-c-in-python-with-clang How to get class method def..
python clang.cindex.Cursor class Cursor(_ctypes.Structure) | The Cursor class represents a reference to an element within the AST. It | acts as a kind of iterator. | | Method resolution order: | Cursor | _ctypes.Structure | _ctypes._CData | __builtin__.object | | Methods defined here: | | __eq__(self, other) | | __ne__(self, other) | | get_arguments(self) | Return an iterator for accessing the arguments of this cursor. | ..
python clang cindex class CursorKind(BaseEnumeration) | A CursorKind describes the kind of entity that a cursor points to. | | Method resolution order: | CursorKind | BaseEnumeration | __builtin__.object | | Methods defined here: | | __repr__(self) | | is_attribute(self) | Test if this is an attribute kind. | | is_declaration(self) | Test if this is a declaration kind. | | is_expression(self) | Test if this is an e..