def buildSubHelpers(indexMaps, subMatrices, aMaps): subClustersHelpers = [] for i in range(0, len(subMatrices)): subCluster = st.createClusterHelpers(indexMaps[i], subMatrices[i], aMaps[i]) subCluster.append(r.buildRecommendations(names, [subCluster])) subClustersHelpers.append(subCluster) return subClustersHelpers
def buildCustomerHelpers(): customerClustersHelpers = st.createClusterHelpers(p.products, c.matrix, p.productsMap) customerClustersHelpers.append(r.buildRecommendations(names,[customerClustersHelpers])) return customerClustersHelpers