| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
- noise contrast estimation
- model-free control
- sample rows
- REINFORCE
- straightup
- 자료구조
- thresholding
- non parametic softmax
- 3d medical image
- domain adaptation
- Policy Gradient
- Actor-Critic
- loss functions
- MRI
- objective functions for machine learning
- remove outliers
- rest-api
- fastapi
- sidleup
- resample
- Excel
- normalization
- shadowing
- clip intensity values
- checkitout
- Inorder Traversal
- Knowledge Distillation
- pulloff
- freebooze
- scowl
- Today
- Total
목록Programming/Python (8)
Let's Run Jinyeah
python 위치 where python >> C:\Users\samsung\Anaconda3\python.exe [Anaconda3] python 가상환경 위치: C:\Users\samsung\Anaconda3\envs conda envs [Anacodna3] python 버전 확인 python --version >>Python 3.6.8 :: Anaconda, Inc. [Anaconda3] 설치 package 확인 conda list
Statistic methods np.sort np.min() & np.max() & np.median() np.percentile 더보기 calculate the ith percentile of the input numpy array along a specified axis ith percentile is the value at which i percent of the data is below it axis (default): input array is flattened np.histogram Find index or value np.where Change the shape np.squeeze 더보기 remove 1-dimensional axis np.tile transpose & reshape rav..
What is difference between csv(.csv) and excel(.xls)? 1. CSV simple type of plain text file which uses a specific structure to arrange tabular data a newline terminates each row to begin the next row each column is separated by a comman within a row 2. Excel spreadsheet software included in the Microsoft office suite binary file that holds information about all the worksheets in a workbook Read ..
read dicom image import pydicom as dcm D_TYPE = 'float32' ds = dcm.dcmread('filename.dcm') image = ds.pixel_array.astype(D_TYPE) save gray-scale image to dicom import pydicom as dcm D_TYPE = 'float32' num_bits = 16 ds = dcm.dcmread('filename.dcm') image = ds.pixel_array.astype(D_TYPE) """ image processing for gray image.... output = gray_image (dtype: float32, pixel_range = [0.0, 1.0]) """ gray_..
1. conda 활용 #생성 conda create -n python=3.8 #활성화 conda activate #가상환경 확인 conda env list #가상환경 제거 conda remove -n 가상환경이름 --all 2. pip 활용 #생성 virtualenv --python=/usr/bin/python3.6 #활성화 source /bin/activate #제거 rm -r virtualenv -p python3 myenv source myenv/bin/activate rm -r myenv
count() 리스트 자료형에서 특정한 값을 가지는 원소의 개수를 세는 메서드 내부에서 순차탐색 수행 - 특정한 데이터를 찾기 위해 앞에서부터 데이터를 하나씩 차례대로 확인하는 방법 reverse() 리스트 자료형의 원소들의 순서를 반대로 뒤집는 메서드 index() 리스트 자료형에서 특정 값을 가지는 원소의 인덱스를 리턴
List slicing notation a[start_index : stop_index] a[start_index : stop_index : step_size] 리스트의 가장 처음부터 or 마지막까지를 슬라이싱할 경우 start_index 또는 stop_index 생략 가능 슬라이싱 결과는 (stop_index-1)번째 원소까지 포함 (stop_index의 item은 제외) List slicing with negative index and negative step value # negative start or stop index a[-1] # 마지막 item a[-2:] # 마지막에서 두번째 item부터 마지막 item까지 a[:-2] # 처음부터 마지막에서 두번째 item 전까지 # negative s..
python에서 입력받는 방법 1. input() 함수 2. sys.stdin.readline() 함수 1. 입력받은 문자열을 띄어씌기로 구분하여 각각 숫자 자료형으로 저장 # 데이터 개수 입력 n = int(input('n을 입력하시오: ')) # 각 데이터를 공백으로 구분하여 리스트에 저장 data = list(map(int, input('data를 입력하시오: ').split())) # 적은 수의 데이터 입력일 경우 각 변수에 저장 n, m, k = map(int, input('세개의 값을 입력하시오: ').split()) # 입력 예시 # n을 입력하시오: 5 # data를 입력하시오: 1 2 3 4 5 # 세개의 를 입력하시오: 1 2 3 # 출력 예시 # 5 # [1, 2, 3, 4, 5] #..