From e3569e95ce4143170ec72083bbdb2b802e9fed3a Mon Sep 17 00:00:00 2001 From: Pradyumna Kaushik Date: Sun, 30 Apr 2017 16:48:38 -0400 Subject: [PATCH] fixed comments to be a little more meaningful. --- def/taskUtils.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/def/taskUtils.go b/def/taskUtils.go index 6b9a722..bbdbb4c 100644 --- a/def/taskUtils.go +++ b/def/taskUtils.go @@ -18,7 +18,9 @@ type TasksToClassify []Task func (tc TasksToClassify) ClassifyTasks(numberOfClusters int, taskObservation func(task Task) []float64) []TaskCluster { clusters := make(map[int][]Task) observations := getObservations(tc, taskObservation) - // TODO: Make the number rounds configurable based on the size of the workload + // TODO: Make the max number of rounds configurable based on the size of the workload + // The max number of rounds (currently defaulted to 100) is the number of iterations performed to obtain + // distinct clusters. When the data size becomes very large, we would need more iterations for clustering. if trained, centroids := gokmeans.Train(observations, numberOfClusters, 100); trained { for i := 0; i < len(observations); i++ { observation := observations[i] @@ -43,7 +45,7 @@ func getObservations(tasks []Task, taskObservation func(task Task) []float64) [] } // Size tasks based on the power consumption -// TODO: Size the cluster in a better way just taking an aggregate of the watts resource requirement. +// TODO: Size the cluster in a better way other than just taking an aggregate of the watts resource requirement. func clusterSize(tasks []Task, taskObservation func(task Task) []float64) float64 { size := 0.0 for _, task := range tasks {