# NOT RUN {
x = c('Alex', 'Darrell', 'Kale', 'Lee', 'Robin', 'Terry', 'John', 'Tom')
y = c(rep('male',length(x)))
givenNamesDB = findGivenNames(x)
probs = seq(from = 0.5, to = 0.9, by = 0.1)
counts = c(1, 10)
genderizeTrain(x = x, y = y,
givenNamesDB = givenNamesDB,
probs = probs, counts = counts,
parallel = TRUE)
# prob count errorCoded errorCodedWithoutNA naCoded errorGenderBias
# 1: 0.5 1 0.125 0.125 0.000 0.125
# 2: 0.6 1 0.125 0.000 0.125 0.000
# 3: 0.7 1 0.125 0.000 0.125 0.000
# 4: 0.8 1 0.375 0.000 0.375 0.000
# 5: 0.9 1 0.500 0.000 0.500 0.000
# 6: 0.5 10 0.125 0.125 0.000 0.125
# 7: 0.6 10 0.125 0.000 0.125 0.000
# 8: 0.7 10 0.125 0.000 0.125 0.000
# 9: 0.8 10 0.375 0.000 0.375 0.000
# 10: 0.9 10 0.500 0.000 0.500 0.000
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab