We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
task is currently an int:
task
@param task 0 for Regression, and 1 for Binary Classification
Calling it looks like:
FMWithSGD.train(trainingData.rdd(), 1, numIterations);
Which is much less clear than something like:
FMWithSGD.train(trainingData.rdd(), REGRESSION, numIterations);
I would suggest using an enum instead of an int. This is exactly the type of case where enums are meant to be used.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
task
is currently an int:Calling it looks like:
Which is much less clear than something like:
I would suggest using an enum instead of an int. This is exactly the type of case where enums are meant to be used.
The text was updated successfully, but these errors were encountered: