Commit 30cdc843 authored by Larry Schultheis's avatar Larry Schultheis
Browse files

stuff

parent 0a44bb2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"]
+3 −2
Original line number Diff line number Diff line
@@ -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
@@ -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();
}

@@ -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){