示例#1
0
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
示例#2
0
def buildCustomerHelpers():
    customerClustersHelpers = st.createClusterHelpers(p.products, c.matrix, p.productsMap)
    customerClustersHelpers.append(r.buildRecommendations(names,[customerClustersHelpers]))
    return customerClustersHelpers