Created
September 28, 2018 08:44
-
-
Save fitomad/674818e459e584f341bec0a574be024f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
let modelParameters = MLTextClassifier.ModelParameters(validationData: validationSet, | |
algorithm: .maxEnt(revision: 1), | |
language: NLLanguage.english) | |
let classifier = MLTextClassifier(trainingData: trainingSet, | |
textColumn: "content", | |
labelColumn: "rating", | |
parameters: modelParameters) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment