2014/07/21 5

c++ 개발환경에서 libsvm 사용하기 / visual studio

/* * http://sosal.kr/ * made by so_Sal */ 메인사진 출처: http://www.turn.com/news/the-magic-of-machine-learning 0. 서론1. LIBSVM 다운받기2. 튜토리얼용 Dataset 다운받기3. C++ 프로젝트 생성하여 libsvm 사용하기3.1 Cross-validation으로 데이터 feature의 성능 측정하기3.2 Training으로 모델 만들기3.3 Model을 이용하여 test 데이터 판별하기 0. 서론libsvm은 supervised-machine learning으로, 학습용으로 주어진 데이터들로부터 모델을 만들고모델에 없는 데이터셋에 대해서 정답 (classification: 1 or 0)을 예측하는 도구중 하나입니다...

C#에서 gene expression data 불러오기

/* * http://sosal.kr/ * made by so_Sal */ raw data를 읽어와 r=5, d=0.5를 이용하여 filtering 한 이후textBox1 텍스트박스에 result.Count 결과 출력해주는 프로그램 private void load_GEO_rawdata(){ List result = new List(); System.IO.StreamReader sr = new System.IO.StreamReader(@"C:\Users\bpark\Desktop\Gene_expression.csv"); while (sr.Peek() > -1) { string[] tokens = sr.ReadLine().Split(new string[] { ",", "8888" },StringSplitOpt..

Gene expression data Thresholding

/* * http://sosal.kr/ * made by so_Sal */ Gene_expression.csvhttp://genome-www.stanford.edu/cellcycle/ Spellman et al., (1998) 에서 raw data - tab / Tab delimited data에서 다운로드 받았습니다.빈칸(blank or null )인 경우 8888로 미리 채워놓은 데이터이기 때문에,아래 소스를 그대로 사용하실 경우에는 수정을 해주셔야 합니다. #include#include#include#include#includeusing namespace std; #define TIME_POINTS 81#define MAX_VALUE 1#define MIN_VALUE 0double threshold..

C++ / Shotgun sequencing implementation

/* * http://sosal.kr/ * made by so_Sal */ 출처: http://www.wiley.com/college/boyer/0470003790/cutting_edge/shotgun_seq/shotgun.htm http://sosal.tistory.com/612Shotgun sequencing 이론에 대한 내용은 위 링크를 참조하세요. 예~전에 bioinformatics 경진대회에 참가하면서 구현했던 프로그램이었는데블로그에 공유해봅니다 ^^ #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #de..

Image J를 이용하여 이미지 피크점 분석하기

/* * http://sosal.kr/ * made by so_Sal */ 생명공학도 학생들이 세포를 분석할 때 많이 쓰는 프로그램이라고 합니다.저는 딱히 사용할일이 없지만 ; (오히려 이런 프로그램을 만들어야 하는 전공이지만 ^^:)나중에 사용할 일이 혹 있을것 같아서 제가 보기 위해 포스팅 해봅니다! ^^ 이 프로그램을 이용하여, 사진에 사람이 몇명이 있는지, 점이 몇개인지, 세포가 몇개인지 등등을 찾을 수 있습니다. 다운로드 및 설치http://rsbweb.nih.gov/ij/ 위 url에 들어가시면 download 메뉴에 os별로 설치프로그램을 받으실 수 있습니다.25메가 정도 크기로 매우 가벼운 프로그램이네요. Figure 1. 설치화면 설치도 그냥 Next > 버튼만 눌러주시면 됩니다. 매우 ..