Loading server.py +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ def correctPrediction(): # TODO make this get the actual ranking of algorithms @app.route('/getAlgorithms', methods=["GET"]) def getTopFiveAlgorithms(): def getTopAlgorithms(): name = ["This (in use)", "Comes", "From", "The", "Server"] f1 = ["5", "4", "3", "2", "1"] precision = ["1", "2", "3", "4", "5"] Loading web/js/main.js +3 −2 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ function correctPrediction(correctLabel) { } // todo get these actual from ml.py function getTopFiveAlgorithms() { function getTopAlgorithms() { var url = "http://localhost:8080" var endpoint = "/getAlgorithms" var replyObj Loading Loading @@ -189,7 +189,7 @@ function getTopFiveWords() { // called on index.html load: gets the top 5 algorithms and the top 5 words from server.py function initializeIndex() { getTopFiveAlgorithms(); getTopAlgorithms(); getTopFiveWords(); } Loading @@ -197,6 +197,7 @@ function initializeIndex() { function clearIndex() { document.getElementById("message").value = ""; document.getElementById("hiddenButtons").style.visibility = "hidden"; document.getElementById("prediction").innerText = "" } function loadAlgGraph(topAlgs){ Loading Loading
server.py +1 −1 Original line number Diff line number Diff line Loading @@ -49,7 +49,7 @@ def correctPrediction(): # TODO make this get the actual ranking of algorithms @app.route('/getAlgorithms', methods=["GET"]) def getTopFiveAlgorithms(): def getTopAlgorithms(): name = ["This (in use)", "Comes", "From", "The", "Server"] f1 = ["5", "4", "3", "2", "1"] precision = ["1", "2", "3", "4", "5"] Loading
web/js/main.js +3 −2 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ function correctPrediction(correctLabel) { } // todo get these actual from ml.py function getTopFiveAlgorithms() { function getTopAlgorithms() { var url = "http://localhost:8080" var endpoint = "/getAlgorithms" var replyObj Loading Loading @@ -189,7 +189,7 @@ function getTopFiveWords() { // called on index.html load: gets the top 5 algorithms and the top 5 words from server.py function initializeIndex() { getTopFiveAlgorithms(); getTopAlgorithms(); getTopFiveWords(); } Loading @@ -197,6 +197,7 @@ function initializeIndex() { function clearIndex() { document.getElementById("message").value = ""; document.getElementById("hiddenButtons").style.visibility = "hidden"; document.getElementById("prediction").innerText = "" } function loadAlgGraph(topAlgs){ Loading