Skip to Main Content
Java Deep Learning Projects
book

Java Deep Learning Projects

by Md. Rezaul Karim
June 2018
Intermediate to advanced content levelIntermediate to advanced
436 pages
10h 33m
English
Packt Publishing
Content preview from Java Deep Learning Projects

Movie rating prediction

Now that all of the datasets required for training, validating, and evaluating are ready, we can start training the FM model. We first start by showing the filename for the training data:

final String trainFile = formattedDataPath+ "/" + "ratings_train.libfm";

Then, we set the testing data file path:

final String testFile = formattedDataPath+ "/" + "ratings_test.libfm";

Then, we set the testing metadata file path:

final String testMetaFile = formattedDataPath+ "/" + "ratings_test.libfm.meta";

Then, the filename for the final prediction output file:

final String outputFile = formattedDataPath+ "/" + "predict_output.txt";

Then, we set up the path for writing the logs, metrics, time, and so on for each iteration to a ...

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 Deep Learning Essentials

Java Deep Learning Essentials

Yusuke Sugomori
Machine Learning in Java - Second Edition

Machine Learning in Java - Second Edition

AshishSingh Bhatia, Bostjan Kaluza
Mastering Java Machine Learning

Mastering Java Machine Learning

Uday Kamath, Krishna Choppella

Publisher Resources

ISBN: 9781788997454Supplemental Content