def get_clusters(): """ This function uses meanshift to process the ticket \ data into process_clusters """ tickets = Ticket.query.all() data = process_clusters(tickets) return jsonify(data=data)
def render_clusters(): """ This function takes the clusters created by the meanshift algorithm in get_clusters and processes the clusters to return details such as the average percent positive of a positive ticket """ tickets = Ticket.query.all() clusters = process_clusters(tickets) data = get_cluster_info(clusters) return render_template("customer_dashboard.html", data=data)
def get_cluster_details(): """ This function takes the clusters created by the meanshift algorithm in get_clusters and processes the clusters to return details such as the average percent positive of a positive ticket """ tickets = Ticket.query.all() clusters = process_clusters(tickets) data = get_cluster_info(clusters) return jsonify(data=data)
def render_clusters(): """ This function takes the clusters created by the meanshift algorithm in get_clusters and processes the clusters to return details such as the average percent positive of a positive ticket """ tickets = Ticket.query.all() clusters = process_clusters(tickets) data = get_cluster_info(clusters); return render_template("customer_dashboard.html", data=data)
def get_cluster_details(): """ This function takes the clusters created by the meanshift algorithm in get_clusters and processes the clusters to return details such as the average percent positive of a positive ticket """ tickets = Ticket.query.all() clusters = process_clusters(tickets) data = get_cluster_info(clusters); return jsonify(data=data)