Hello,
I have a function with 3 intricated loops to get the best parameters from about 16000000 combinations. This takes a lot of time.
I am looking for an alternative.
Here is the function.
I have a function with 3 intricated loops to get the best parameters from about 16000000 combinations. This takes a lot of time.
I am looking for an alternative.
Here is the function.
for a in range(700, 800, 1):
a = a / 100
for c in range(100, 200, 1):
#c = c / 10.0
for seed in range(min_seed, max_seed + 1):
#seed = seed/20.0
generated_sequence = generate_sequence(a, c, best_m, seed, len(adjusted_values))
cubed_difference = calculate_mean_squared_error(generated_sequence, adjusted_values)
if cubed_difference < min_cubed_difference:
min_cubed_difference = cubed_difference
best_a = a
best_c = c
best_seed = seed
buran write Nov-30-2023, 07:57 AM:
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
Please, use proper tags when post code, traceback, output, etc. This time I have added tags for you.
See BBcode help for more info.
