CreateCustomSearchΒΆ

Creates a search with a number of custom parameters.

from eureqa import Eureqa
eureqa = Eureqa(url='http://localhost:10002', user_name='root', password='Changeme1')
data_source = eureqa.create_data_source('Sample_data_2', 'sample.csv')

variables = set(data_source.get_variables())
settings = eureqa.search_templates.numeric('Weight_model', 'Weight', variables - {'Weight'})
settings.error_metric = error_metric.log_loss_error()
settings.data_splitting.training_data_percentage = 80
settings.data_splitting.validation_data_percentage = 20
settings.math_blocks.append(math_block.and_op())

search = data_source.create_search(settings)
search.submit(10)
search.wait_until_done()

print 'Best model for Weight is: ' + search.get_best_solution().model