Skip to Content
Java: Data Science Made Easy
book

Java: Data Science Made Easy

by Richard M. Reese, Jennifer L. Reese, Alexey Grigorev
July 2017
Beginner to intermediate
715 pages
17h 3m
English
Packt Publishing
Content preview from Java: Data Science Made Easy

Other libraries

Other libraries that we previously covered also have models for solving the regression problem.

For example, in LIBSVM, it is possible to do regression by setting the svm_type parameter to EPSILON_SVR or NU_SVR, and the rest of the code stays almost the same as in the classification case. Likewise, in LIBLINEAR, the regression problem is solved by choosing L2R_L2LOSS_SVR or L2R_L2LOSS_SVR_DUAL models.

It is also possible to solve the regression problem with neural networks, for example, in Encog. The only thing you need to change is the loss function: instead of minimizing a classification loss function (such as logloss) you should use a regression loss function, such as mean-squared error.

Since most of the code is pretty ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Data Science Cookbook

Java Data Science Cookbook

Rushdi Shams
Java for Data Science

Java for Data Science

Walter Molina, Richard M. Reese, Shilpi Saxena, Jennifer L. Reese

Publisher Resources

ISBN: 9781788475655Supplemental Content