Ngocbd

Recommender system to find music

Problem: I need on building recommender systems to find music that interest users. Solution: I built  a personalized model, and showed the significant improvement provided by personalization. I’m going to explore the song data and the recommendations made by my model. Download: song_data.gl Start: # Use Graphlab library import graphlab # Use Sframe of Graphlab to load data song_data =…

Read More

Basic Data Manipulation

Read an NIfTI files This is example to read some NIfTI files and execute some basic data manipulation, by using this example code you must be install package oro.nifti,fslr,AnalyzeFMRI first. Download a NIfTI file from Neurohacking_data repository library(oro.nifti) url <- “https://raw.githubusercontent.com/muschellij2/Neurohacking/master/Basic_Data_Manipulations/Kirby21/SUBJ0001-01-MPRAGE.nii.gz” destfile <- “SUBJ0001-01-MPRAGE.nii.gz” fname <- file.path(getwd(), destfile) download.file(url, destfile,mode=”wb”) # NIfTI is binaryfile format maskurl <-…

Read More

Transformations and Smoothing

Read an NIfTI file This is example to read a NIfTI file and apply TRANSFORMATIONS AND SMOOTHING , by using this example code you must be install package oro.nifti,AnalyzeFMRI: first. Download a NIfTI file from Neurohacking_data repository library(oro.nifti) url <- “https://raw.githubusercontent.com/muschellij2/Neurohacking/master/Basic_Data_Manipulations/Kirby21/SUBJ0001-01-MPRAGE.nii.gz” destfile <- “Output_3D_File.nii.gz” name <- file.path(getwd(), destfile) download.file(url, destfile,mode=”wb”) # NIfTI is binaryfile format T1 <-…

Read More

Visualizing An Image From DICOM File

Read an DICOM file This is example to read a DICOM file and display an image , by using this example code you must be install package oro.dicom first. Download a DICOM file from Neurohacking_data repository library(oro.dicom) url <- “https://raw.githubusercontent.com/muschellij2/Neurohacking_data/master/BRAINIX/DICOM/T1/IM-0001-0001.dcm” destfile <- “IM-0001-0001.dcm” name <- file.path(getwd(), destfile) download.file(url, destfile,mode=”wb”) # DICOM is binaryfile format dcm <- readDICOMFile(destfile)…

Read More

Visualizing Images From NIfTI File

Read an NIfTI file This is example to read a NIfTI file and display an image , by using this example code you must be install package oro.nifti) first. Download a NIfTI file from Neurohacking_data repository library(oro.nifti) url <- “https://raw.githubusercontent.com/muschellij2/Neurohacking_data/master/BRAINIX/NIfTI/Output_3D_File.nii.gz” destfile <- “Output_3D_File.nii.gz” name <- file.path(getwd(), destfile) download.file(url, destfile,mode=”wb”) # NIfTI is binaryfile format nii_T1 <- readNIfTI(destfile)…

Read More

Note One Case Study About T-Test

This is a quiz in inference statistic at udacity In this quiz, we want to study : Who has more shoes – males or females? Firstly, we set a null hypothesis that : Males and Femals have the same number of shoes. So, alternative hypothesis is Males and Femals have not the same number of shoes.  This…

Read More

Predicting House Price

My boss give me the challenge “how to predict house prices”. I wondered what to do… It’s difficult because i don’t know what is the feature1 and feature2. How to start? Input Training Content training.csv file features1,features2,price 0.44,0.68,511.14 0.99,0.23,717.1 0.84,0.29,607.91 0.28,0.45,270.4 0.07,0.83,289.88 0.66,0.8,830.85 0.73,0.92,1038.09 0.57,0.43,455.19 0.43,0.89,640.17 0.27,0.95,511.06 0.43,0.06,177.03 0.87,0.91,1242.52 0.78,0.69,891.37 0.9,0.94,1339.72 0.41,0.06,169.88 0.52,0.17,276.05 0.47,0.66,517.43 0.65,0.43,522.25…

Read More

Pagination Search Result in Cakephp 1.1

In previous lesson, i talked about pagination in cakephp 1.1.  In this lesson, i’m going to talk about pagination search result in cakephp 1.1.(like previous method). With PaginationHelper and PaginationComponent in previous lesson, they only help conventional pagination. But, when we add search condition into request, pagination has been error. The reason is that when…

Read More