Displaying 10 results from an estimated 10 matches for "outofsampl".
Did you mean:
outofsample
2009 Oct 20
2
LDA Precdict - Seems to be predicting on the Training Data
...15 0.363069339 0.334206603 0.639795596 b
1/31/2009 Name16 0.862889297 0.821752532 0.549552875 a
Attached is the code:
myDat <-read.csv(file="f:\\Systematiq\\data\\TestData.csv",
header=TRUE,sep=",")
myData <- data.frame(myDat)
length(myDat[,1])
train <- myDat[1:10,]
outOfSample <- myDat[11:16,]
outOfSample <- (cbind(outOfSample$v1,outOfSample$v2,outOfSample$v3))
outOfSample <-data.frame(outOfSample)
length(train[,1])
length(outOfSample[,1])
fit <- lda(train$c1~train$v1+train$v2+train$v3)
forecast <- predict(fit,outOfSample)$class
length(forecast)#####...
2018 Feb 26
3
Random Seed Location
...applied before any commands which involve randomness
(such as partitioning)?
If you need to see the code, it is below:
Thank you,
Gary
A. Separate the original (in-sample) data from the new (out-of-sample)
data. Set a random seed.
> InvestTech <- as.data.frame(InvestTechRevised)
> outOfSample <- InvestTech[5001:nrow(InvestTech), ]
> InvestTech <- InvestTech[1:5000, ]
> set.seed(654321)
B. Install and load the caret, ggplot2 and e1071 packages.
> install.packages(?caret?)
> install.packages(?ggplot2?)
> install.packages(?e1071?)
> library(caret)
> library(gg...
2018 Feb 27
0
Random Seed Location
...h as partitioning)?
>
> If you need to see the code, it is below:
>
> Thank you,
> Gary
>
>
> A. Separate the original (in-sample) data from the new (out-of-sample)
> data. Set a random seed.
>
> > InvestTech <- as.data.frame(InvestTechRevised)
> > outOfSample <- InvestTech[5001:nrow(InvestTech), ]
> > InvestTech <- InvestTech[1:5000, ]
> > set.seed(654321)
>
> B. Install and load the caret, ggplot2 and e1071 packages.
>
> > install.packages(?caret?)
> > install.packages(?ggplot2?)
> > install.packages(?...
2018 Mar 04
3
Random Seed Location
...ioning)?
>
> If you need to see the code, it is below:
>
> Thank you,
> Gary
>
>
> A. Separate the original (in-sample) data from the new
(out-of-sample)
> data. Set a random seed.
>
>> InvestTech <- as.data.frame(InvestTechRevised)
>> outOfSample <- InvestTech[5001:nrow(InvestTech), ]
>> InvestTech <- InvestTech[1:5000, ]
>> set.seed(654321)
>
> B. Install and load the caret, ggplot2 and e1071 packages.
>
>> install.packages(?caret?)
>> install.packages(?ggplot2?)
>> install.package...
2018 Mar 04
0
Random Seed Location
...the code, it is below:
> >
> > Thank you,
> > Gary
> >
> >
> > A. Separate the original (in-sample) data from the new (out-of-sample)
> > data. Set a random seed.
> >
> >> InvestTech <- as.data.frame(InvestTechRevised)
> >> outOfSample <- InvestTech[5001:nrow(InvestTech), ]
> >> InvestTech <- InvestTech[1:5000, ]
> >> set.seed(654321)
> >
> > B. Install and load the caret, ggplot2 and e1071 packages.
> >
> >> install.packages(?caret?)
> >> install.packages(?ggplot2...
2018 Mar 04
2
Random Seed Location
...t;> > Thank you,
>> > Gary
>> >
>> >
>> > A. Separate the original (in-sample) data from the new (out-of-sample)
>> > data. Set a random seed.
>> >
>> >> InvestTech <- as.data.frame(InvestTechRevised)
>> >> outOfSample <- InvestTech[5001:nrow(InvestTech), ]
>> >> InvestTech <- InvestTech[1:5000, ]
>> >> set.seed(654321)
>> >
>> > B. Install and load the caret, ggplot2 and e1071 packages.
>> >
>> >> install.packages(?caret?)
>> >&g...
2018 Mar 04
0
Random Seed Location
...gt;>>> Gary
>>>>
>>>>
>>>> A. Separate the original (in-sample) data from the new (out-of-sample)
>>>> data. Set a random seed.
>>>>
>>>>> InvestTech <- as.data.frame(InvestTechRevised)
>>>>> outOfSample <- InvestTech[5001:nrow(InvestTech), ]
>>>>> InvestTech <- InvestTech[1:5000, ]
>>>>> set.seed(654321)
>>>>
>>>> B. Install and load the caret, ggplot2 and e1071 packages.
>>>>
>>>>> install.packages(?caret...
2018 Feb 24
3
Regression Tree Questions
Hi All,
I'm a newbie and have two questions. Please pardon me if they are very basic.
1. I'm using a regression tree to predict the selling prices of 10 new records (homes). The following code is resulting in an error message: pred <- predict(model, newdata = outOfSample[, -6])
The error message is:
Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = attr(object, :
factor Sq. Feet has new levels 1375, 1421, 1547, 1621, 1868, 2211, 2265, 2530, 2672, 3365
Does anybody know what is causing this? I've pasted a snippet of my original...
2018 Mar 05
1
Random Seed Location
...;>>>
>>>>> A. Separate the original (in-sample) data from the new
>>>>> (out-of-sample)
>>>>> data. Set a random seed.
>>>>>
>>>>>> InvestTech <- as.data.frame(InvestTechRevised)
>>>>>> outOfSample <- InvestTech[5001:nrow(InvestTech), ]
>>>>>> InvestTech <- InvestTech[1:5000, ]
>>>>>> set.seed(654321)
>>>>>
>>>>>
>>>>> B. Install and load the caret, ggplot2 and e1071 packages.
>>>>>
>...
2018 Feb 24
0
Regression Tree Questions
...All,
>
> I'm a newbie and have two questions. Please pardon me if they are very basic.
>
>
> 1. I'm using a regression tree to predict the selling prices of 10 new records (homes). The following code is resulting in an error message: pred <- predict(model, newdata = outOfSample[, -6])
>
> The error message is:
>
> Error in model.frame.default(Terms, newdata, na.action = na.action, xlev = attr(object, :
> factor Sq. Feet has new levels 1375, 1421, 1547, 1621, 1868, 2211, 2265, 2530, 2672, 3365
>
Seems to me that variable 'Sq. Feet' is bein...