I am using TextClassificationEngine
. Given example at https://docs.prediction.io/demo/textclassification/ there is two algorithms (Naive Bayes and Logistic Regression) for text classification. Naive Bayes algorithm works fine but when I used Logistic Regression it gives some error.
{
"id": "default",
"description": "Default settings",
"engineFactory": "org.template.textclassification.TextClassificationEngine",
"datasource": {
"params": {
"appName": "Logistic"
}
},
"preparator": {
"params": {
"nGram": 2
}
},
"algorithms": [
{
"name": "regParam",
"params": {
"regParam":2,5
}
}
]
}
above code is given on site, it have some error at regParam
due to array. Can anyone please explain me what regParam
in engine.json
and what is the final engine.json
for Logistic regression?