خرید بک لینک

Vote count: 0

I'm trying to classify some data using SVM in R.

The data set:

D1 | D2 | D3 | word1 | word2 |...
1  | 2  | 3  | 0     | 1     |
3  | 2  | 1  | 1     | 0     |

D1, D2, D3 take values from 0 to 9 and each word takes a 0/1 value.

First I want to build a classificator that predicts D1 based on word1, word2, etc. Then I want to build a classificator that predicts D2 based on what it predicted in D1 and the words (D1, D2 and D3 used to be a single number of 3 digits).

So far I have:

trainD1 <- train[,-1]
trainD1$D2 <- NULL
trainD1$D3 <- NULL

modelD1 <- svm( train$D1~., trainD1, type="C-classification")

But I'm completly lost, any help is welcome. Thanks

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 14 تير 1395 ساعت: 3:29

صفحه بندی