Skip to content
Snippets Groups Projects
Unverified Commit f0443266 authored by Athanasios Xygkis's avatar Athanasios Xygkis
Browse files

Add note to report top-5 with lowest ids

parent a437e299
No related branches found
No related tags found
1 merge request!1Json
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
...@@ -61,12 +61,17 @@ object Recommender extends App { ...@@ -61,12 +61,17 @@ object Recommender extends App {
// Limiting the scope of implicit formats with {} // Limiting the scope of implicit formats with {}
implicit val formats = org.json4s.DefaultFormats implicit val formats = org.json4s.DefaultFormats
val answers: Map[String, Any] = Map( val answers: Map[String, Any] = Map(
// IMPORTANT: To break ties and ensure reproducibility of results,
// please report the top-5 recommendations that have the smallest
// movie identifier.
"Q4.1.1" -> List[Any]( "Q4.1.1" -> List[Any](
List(254, "Batman & Robin (1997)", 5.0), // Datatypes for answer: Int, String, Double List(254, "Batman & Robin (1997)", 5.0), // Datatypes for answer: Int, String, Double
List(338, "Bean (1997)", 5.0), List(338, "Bean (1997)", 5.0),
List(587, "Hour of the Pig", 5.0),
List(615, "39 Steps", 5.0), List(615, "39 Steps", 5.0),
List(741, "Last Supper", 5.0) List(741, "Last Supper", 5.0),
List(587, "Hour of the Pig", 5.0)
) )
) )
json = Serialization.writePretty(answers) json = Serialization.writePretty(answers)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment