June 2018
Intermediate to advanced
436 pages
10h 33m
English
Now that we have seen how to convert rating, movie, and metadata, we can now start creating training, test, and validation sets from the data in LibFM format. First, we set the path of the LibFM files to be used as follows:
//SplitDataWithMetaData.javaprivate static String ratinglibFM = formattedDataPath + "/" + "ratings.libfm"; // inputprivate static String ratinglibFM_train = formattedDataPath + "/" + "ratings_train.libfm"; // for traningprivate static String ratinglibFM_test = formattedDataPath + "/" + "ratings_test.libfm"; // for testingprivate static String ratinglibFM_test_meta = formattedDataPath +"/"+"ratings_test.libfm.meta";// metadataprivate static String ratinglibFM_valid = formattedDataPath
Read now
Unlock full access