search for: training_data

Displaying 3 results from an estimated 3 matches for "training_data".

2006 Feb 27
1
question about Principal Component Analysis in R?
Hi all, I am wondering in R, suppose I did the principal component analysis on training data set and obtain the rotation matrix, via: > pca=prcomp(training_data, center=TRUE, scale=FALSE, retx=TRUE); Then I want to rotate the test data set using the > d1=scale(test_data, center=TRUE, scale=FALSE) %*% pca$rotation; > d2=predict(pca, test_data, center=TRUE, scale=FALSE); these two values are different > min(d2-d1) [1] -1.976152 > max(d2-d1) [...
2012 Jun 05
0
Memory leak during instantiation of a reference class?
...m with a large data set wrapped in a reference class. I do that to access the data by reference from within various functions in a script. # The class definition: setRefClass("data", fields = list(h5_df = "list", training_data = "array", true_class = "vector")); # The class instantiation: data_1 <- new("data", h5_df = as.list(h5_df), training_data = training_d...
2005 Aug 09
2
How to pre-filter large amounts of data effectively
...a[length(realdata)+1]=col } } filteredX=X[,realdata] } return(list(x=filteredX, ix=realdata)) } #----------------- # Filter out all all-constant columns in my training data set # # Read training data set with class information in the first column training <- read.csv('training_data.txt') dim(training) # => 49 rows and 525 columns # Prepare column names by stripping the underline and the number at the end colnames(training) <- sub('_\\d+$', '', colnames(training), perl=TRUE) # Filter out the all-constant columns, exclude column 1, the class colu...