전체글
특정 폴더 안 디렉토리 순회
import os def enum_folder_only(dirname): for filename in os.listdir(dirname): file_path = os.path.join(dirname,filename) if os.path.isdir(file_path): print(file_path) enum_folder_only(file_path) enum_folder_only("순회할 폴더경로") 출처 https://m.blog.naver.com/monkey5255/221758850260 특정 폴더안의 디렉토리(파일x) 순회하기 (Getting a list of all subdirectories in a directory recursively) 특정 폴더 경로를 입력하면 그 안의 모든 폴더(맨 하위 폴더..
단일 염기 다형성(Single Nucleotide Polymorphism, SNP)
☆※내글 비공 풀기※☆ https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=nanohelix&logNo=220077321178 SNP는 유전체(genome)에서 1,000개의 염기서열 마다 1개 꼴로 나타나는데 이로 인해 개인적인 '유전적 다양성'이 나타난다. 즉 DNA 사슬의 특정 부위에 어떤 사람은 A(adenine)또는 T(thymine)을 가지고 있는 반면 어떤 사람은 C(cytosine) 또는 G(guanine)을 가지고 있는 것이다. 이런 미세한 차이에 의해 각 유전자의 기능이 달라질 수 있고 이런 것들이 상호 작용하여 서로 다른 모양의 사람을 만들고 서로 다른 질병에 대한 감수성의 차이를 만들어 낸다. 단일염기다형성 분석 ..
[tf.data] data transform하여 dataset 추가하기
https://stackoverflow.com/questions/47337031/how-to-expand-tf-data-dataset-with-additional-example-transformations-in-tensorf?rq=1 How to expand tf.data.Dataset with additional example transformations in Tensorflow I would like to double the size of an existing dataset I'm using to train a neural network in tensorflow on the fly by adding random noise to it. So when I'm done I'll have all the ex..
[python] range&enumerate
https://potensj.tistory.com/114 [ Python Skill ] range 대신 enumerate를 써야하는 이유 Python에서 iterable한 자료구조를 for문을 통해 순회할때 주로 range와 enumerate 두 가지를 사용합니다. 이번 포스팅에서는 range 보다 enumerate를 써야하는 이유에 대해 살펴보겠습니다. 1. range는 len함수 potensj.tistory.com
파이썬 string 앞에 0채우기
https://kkamikoon.tistory.com/entry/Python-%EC%8A%A4%ED%8A%B8%EB%A7%81-%EC%95%9E%EC%97%90-0-%EC%B1%84%EC%9A%B0%EB%8A%94-%EB%B0%A9%EB%B2%95zfill-rjust [Python] 스트링 앞에 0 채우는 방법(zfill, rjust) 파이썬에서 숫자를 출력하고자 하는데, 앞에 0을 붙여주고 싶을 때 해결 방법을 찾아보았습니다.이때 사용할 수 있는 함수가 zfill()이라는 함수와 rjust()라는 함수가 있는데, 함수를 다음과 같이 kkamikoon.tistory.com 01. zfill(width) 함수 사용 1 2 3 4 5 6 7 8 #"002" "2".zfill(3) #"50000" "50000..
불안정한 validataion loss
https://stats.stackexchange.com/questions/255105/why-is-the-validation-accuracy-fluctuating Why is the validation accuracy fluctuating? I have a four layer CNN to predict response to cancer using MRI data. I use ReLU activations to introduce nonlinearities. The train accuracy and loss monotonically increase and decrease respectivel... stats.stackexchange.com https://datascience.stackexchange.com..
Overfitting_1. 가중치규제
https://velog.io/@qksekf/%EB%94%A5%EB%9F%AC%EB%8B%9D-Tensorflow.keras 신경망 : [Tensorflow.keras, 활성화 함수] 👩🏻 딥러닝 라이브러리 : tf.keras tensorflow.keras는 딥러닝 모델을 빌드하고 학습시키기 위한 TensorFlow의 상위 수준 API이다 velog.io https://velog.io/@yelim421/RegularizationL2-Regularization-Dropout
다중인덱싱
https://blockchainstudy.tistory.com/45 14. Pandas - 다중인덱싱(Multi Index) 1. 다중인덱싱 생성 인덱스가 2개일 수도 있을까? 인덱스가 2개인 경우, 다중 인덱싱이 가능하다. 인덱스가 사람이름, 교과목명 2가지인 경우, 다음과 같이 만들 수 있다. 1) DataFrame에서는 생성자 blockchainstudy.tistory.com https://seong6496.tistory.com/157 [Pandas] 데이터프레임 멀티인덱스 다루기(loc,xs) 판다스에서 멀티인덱서 다루는 방법입니다. 제가 이전에 groupby에 대해 써놓은 게 있는데 그 상황에서 멀티인덱서를 다뤄보겠습니다. 두가지 방법으로 loc,xs가 있긴 하지만 사실상 실제적으로 많 seo..