Displaying 14 results from an estimated 14 matches for "xtraining".
Did you mean:
training
2010 Mar 30
1
predict.kohonen for SOM returns NA?
...252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] kohonen_2.0.5 class_7.3-1
loaded via a namespace (and not attached):
[1] tools_2.10.1
> data(wines)
> set.seed(7)
> training <- sample(nrow(wines), 120)
> Xtraining <- scale(wines[training, ])
> Xtest <- scale(wines[-training, ],
+ center = attr(Xtraining, "scaled:center"),
+ scale = attr(Xtraining, "scaled:scale"))
> som.wines <- som(Xtraining, grid = somgrid(5, 5, "hexagonal"))
> som.prediction <- predict(so...
2007 Oct 23
1
Compute R2 and Q2 in PLS with pls.pcr package
Dear list
I am using the mvr function of the package pls.pcr to compute PLS
resgression using a X matrix of gene expression variables and a Y matrix
of medical varaibles.
I would like to obtain the R2 (sum of squares captured by the model) and
Q2 (proportion of total sum of squares captured in leave-one-out cross
validation) of the model.
I am not sure if there are specific slots in the
2010 Aug 16
0
Help for using nnet in R for NN training and testing
Hello,
I want to use nnet package in R, to train and simulate a NN and get the
value of MSE.
I am reading in a file which has 19 input variables and one output variable
and has a total of 2000 observations. The first column in the file is a
column just for giving the serial numbers of the observations.
I have already read in the file and also extracted the different values into
the matrices to
2012 Sep 13
0
I need help for svm package kernlab in R
I use the svm package kernlab .I have two question.
In R
library(kernlab)
m=ksvm(xtrain,ytrain,type="C-svc",kernel=custom function, C=10)
alpha(m)
alphaindex(m)
I can get alpha value and alpha index about package.
1.
Assumption that number of sample are 20.
number of support vectors are 15.
then rest 5`s alphas are 0?
2. I want use kernelMatrix
xtrain=as.matrix(xtrain)
2004 Nov 15
0
how to obtain predicted labels for test data using "kernelpls"
Dear members,
My name is Seungho Huh. I am a statistician who tries to use the Kernel
PLS method in a classification problem. I am sending this email to ask
you something about the "kernelpls" function in R (pls.pcr package).
I would like to obtain the predicted Y values for test data, using the
Kernel PLS method. Let's take the example in the R help:
> data(NIR)
>
2009 Oct 14
0
Confusion matrix from cross validation in R:
Hey!
How do I get the confusion matrix after performing 10-fold cross validation
from SVM in R?
When I try to print it, I get the confusion matrix without cross validation.
I need to compute PPV. Should I report PPV without CV and total accuracy
with CV?
I am confused.
> svmtrain <- svm(xtrain,ytrain,kernel="sigmoid",cross=10)
> pred <- predict(svmtrain, xtrain)
>
2004 Nov 15
0
how to obtain predicted labels for test data using "kerne lpls"
You need to do some extra work if you want to do classification with a
regression method. One simple way to do classification with PLS is to code
the classes as 0s and 1s (assuming there are only two classes) or -1s and
1s, fit the model, then threshold the prediction; e.g., those with predicted
values < 0.5 (in the 0/1 coding) get labeled as 0s. There's a predict()
method for mvr
2012 Feb 01
1
randomForest: proximity for new objects using an existing rf
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120201/cc22025d/attachment.pl>
2011 May 24
1
seeking help on using LARS package
Hi,
I am writing to seek some guidance regarding using Lasso regression with the
R package LARS. I have introductory statistics background but I am trying to
learn more. Right now I am trying to duplicate the results in a paper for
shRNA prediction "An accurate and interpretable model for siRNA efficacy
prediction, Jean-Philippe Vert et. al, Bioinformatics" for a Bioinformatics
project
2007 Jan 22
0
Recursive-SVM (R-SVM)
I am trying to implement a simple r-svm example using the iris data (only two of the classes are taken and data is within the code). I am running into some errors. I am not an expert on svm's. If any one has used it, I would appreciate their help. I am appending the code below.
Thanks../Murli
#######################################################
### R-code for R-SVM
### use leave-one-out
2005 Nov 25
3
obtaining a ROC curve
Hello,
I have a classification tree. I want to obtain a ROC curve for this test. What is the easiest way to obtain one?
-Anjali
---------------------------------
[[alternative HTML version deleted]]
2008 Feb 05
0
Uninformative error msgs w/ svm.default - Error in svm.default ... y must be a vector or a factor -
Hello,
I'm using recursive SVM script (rSVM - http://www.stanford.edu/group/wonglab/RSVMpage/R-SVM.html ) on some microarray data. The data to be input are log2, as numeric matrix w/ attributes --
str(svm_num_mat)
num [1:10, 1:12340] 13.1 13.1 13.1 13.1 13.0 ...
- attr(*, "dimnames")=List of 2
..$ : chr [1:10] "rma_log2_con_sample_1"
2012 Aug 27
0
kernlab`s custom kernel of ksvm freeze
Hello, together
I'm trying to use user defined kernel. I know that kernlab offer user
defined kernel(custom kernel functions) in R.
I used data spam including package kernlab.
(number of variables=58 number of examples =4061)
i'm user defined kernel's form,
kp=function(d,e){
as=v*d
bs=v*e
cs=as-bs
cs=as.matrix(cs)
exp(-(norm(cs,"F")^2)/2)
}
2018 Feb 19
0
questions regarding the svmpath package (functions svmpath and predict)
Hello,
I have two questions.
The svmpath package provides a svmpath function:
---
fit <- svmpath(xtrain, ytrain, kernel.function = radial.kernel, param.kernel = 0.8)
---
1) How to get the optimal lambda value out of this result?
The svmpath package also provides a predict function:
---
ytest <- predict(fit, xtest)
---
How to get a score (or a probability of belonging to one of the two