Exemplo n.º 1
0
def simple_validate():
    pop_test_user_bus_data(numUsers=30, numBusinesses=20)
    generate_nmf_test(numFactors=6, density=.3)
    print("here?")
    K = [1, 3, 6, 9, 12]
    Steps = 20000
    Alpha = 0.001
    run_nmf_mult_k(K, Steps, Alpha)
Exemplo n.º 2
0
def validate_production_data():
    # K = [12,13,14,15,16,17,18]
#    K = [12,14,16,18,20,22,24,26]
    #K = [2,5,10,15,20,25,30,35,40]
    K = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60]
    #K = [32, 34, 36, 38, 40, 42, 44, 46, 48, 50]
    #K = [46,48,50]
    #K = [62,64,66,68,70,72,74,76,78,80]
    #K = [50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90]
    #Steps = 30000
    Steps = 5000
    Alpha = 0.05
    run_nmf_mult_k(K, Steps, Alpha)
Exemplo n.º 3
0
 def test_gen_model(self):
     pop_test_user_bus_data(numUsers=30, numBusinesses=20)
     generate_nmf_test(numFactors=6, density=.3)
     K = [1, 3, 6, 9, 12]
     run_nmf_mult_k(K)
Exemplo n.º 4
0
def val_nmf(K, Steps):
    Alpha = 0.05
    run_nmf_mult_k(K, Steps, Alpha)
Exemplo n.º 5
0
Arquivo: views.py Projeto: zouf/as2
def validate_production_data():
    K = [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60]
    Steps = 5000
    Alpha = 0.05
    run_nmf_mult_k(K, Steps, Alpha)