[R] Erros with RVM and LSSVM from kernlab library
David Winsemius
dwinsemius at comcast.net
Thu Aug 20 00:36:21 CEST 2009
On Aug 19, 2009, at 6:30 PM, Noah Silverman wrote:
> Thanks David,
>
> Then, do you have any clue why RVM or LSSVM would be generating an
> error?
No.
>
> My original post was:
>
>
> "When running RVM or LSSVM on the exact same data as the SVM{e1071},
> I get an error that I don't understand:
> Error in .local(x, ...) : kernel must inherit from class 'kernel' "
>
> Any suggestions?
My suggestion would be to include more information. Expecting people
to figure out where the error arose when they have not been given: a)
the code that produced the error and b) a good-faith effort at a
description of the data supplied seems an exercise in futility.
>
> Thanks!
>
>
>
> On 8/19/09 3:17 PM, David Winsemius wrote:
>>
>>
>> On Aug 19, 2009, at 6:11 PM, Noah Silverman wrote:
>>
>>> Steve,
>>>
>>> Not sure what to do with this.
>>>
>>> I have a data.frame. Don't know how to convert it to a list.
>>
>> A data.frame is a list.
>>
>>>
>>> Does anybody else have any input on this?
>>>
>>>
>>>
>>> On 8/19/09 12:17 PM, Steve Lianoglou wrote:
>>>>> Steve,
>>>>>
>>>>> That makes sense, except that x is a data.frame with about 70
>>>>> columns. So I don't see how it would convert to a list.
>>>>
>>>> Yeah ... not sure if that's what happening (R class
>>>> relationships/testing is still a bit of a mystery to me), but see:
>>>>
>>>> R> df <- data.frame(a=1:10,b=1:10)
>>>> R> is(df)
>>>> [1] "data.frame" "list" "oldClass" "mpinput" "vector"
>>>>
>>>> But
>>>>
>>>> R> is(df, 'list')
>>>> [1] FALSE
>>>>
>>>> So, in short, I don't know if that's what's happening ... did it
>>>> fix
>>>> your problem, tho?
>>>>
>>>> -steve
>>
>> David Winsemius, MD
>> Heritage Laboratories
>> West Hartford, CT
>>
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
More information about the R-help
mailing list