Description Usage Arguments Examples
Use it to create training- and test data partition.
1 | Glib.createPartition(manager, rate = c(50, 50))
|
manager |
Glib user profiles manager object. |
rate |
the rates (vector) of partition. |
1 2 3 4 5 6 7 8 9 | ## Not run:
UserProfilesManager <- Glib.createUserProfilesManager(GlibEnv, data)
Glib.createUserProfiles(UserProfilesManager)
Glib.createPartition(UserProfilesManager, c(50, 50))
userProfiles <- Glib.getUserProfiles(UserProfilesManager)
trainingUserProfiles <- userProfiles[userProfiles[,'part'] == 1,]
testUserProfiles <- userProfiles[userProfiles[,'part'] == 2,]
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.