The goal is to predict the click on an ads based on a dataset from the real world.
The program must take a json file of user data as input and produce a csv file enhanced by a first column named label
that will contains the wether or not (true or false) the user would had clicked.
Download this project, then go to the directory and open a terminal in the source folder. Then execute the following command:
sbt assembly
A jar executable called TheIllusionists-assembly-0.1.jar should be created in the source folder at target/scala-2.12
.
You can move the executable from his place to the source folder by executing the following command:
mv target/scala-2.12/TheIllusionists-assembly-0.1.jar TheIllusionists.jar
Once you moved the executable to the source folder, you can run the project by using:
java -jar TheIllusionists.jar "path to the json data file"
A CSV file called part-0000-xxxx.csv
should be created in the result
folder with the prediction of the model in the first column label
.