moe.tests.views.rest package

Submodules

moe.tests.views.rest.bandit_bla_test module

Test class for bandit_bla view.

class moe.tests.views.rest.bandit_bla_test.TestBanditBLAViews[source]

Bases: moe.tests.views.rest.bandit_test.TestBanditViews

Integration test for the /bandit/bla endpoint.

test_historical_info_passed_through()[source]

Test that the historical info get passed through to the endpoint.

test_interface_returns_as_expected()[source]

Integration test for the /bandit/bla endpoint.

moe.tests.views.rest.bandit_epsilon_test module

Test class for bandit_epsilon view.

class moe.tests.views.rest.bandit_epsilon_test.TestBanditEpsilonViews[source]

Bases: moe.tests.views.rest.bandit_test.TestBanditViews

Integration test for the /bandit/epsilon endpoint.

test_epsilon_first_hyperparameters_passed_through()[source]

Test that the hyperparameters get passed through to the epsilon-first endpoint.

test_epsilon_greedy_hyperparameters_passed_through()[source]

Test that the hyperparameters get passed through to the epsilon-greedy endpoint.

test_historical_info_passed_through()[source]

Test that the historical info get passed through to the endpoint.

test_interface_returns_as_expected()[source]

Integration test for the /bandit/epsilon endpoint.

moe.tests.views.rest.bandit_test module

Test class for bandit views.

class moe.tests.views.rest.bandit_test.TestBanditViews[source]

Bases: moe.tests.bandit.bandit_test_case.BanditTestCase, moe.tests.views.rest_test_case.RestTestCase

Integration test for the /bandit endpoints.

moe.tests.views.rest.bandit_ucb_test module

Test class for bandit_ucb view.

class moe.tests.views.rest.bandit_ucb_test.TestBanditUCBViews[source]

Bases: moe.tests.views.rest.bandit_test.TestBanditViews

Integration test for the /bandit/ucb endpoint.

test_historical_info_passed_through()[source]

Test that the historical info get passed through to the endpoint.

test_interface_returns_as_expected()[source]

Integration test for the /bandit/ucb endpoint.

moe.tests.views.rest.gp_ei_test module

Test class for gp_mean_var view.

class moe.tests.views.rest.gp_ei_test.TestGpEiView[source]

Bases: moe.tests.optimal_learning.python.gaussian_process_test_case.GaussianProcessTestCase, moe.tests.views.rest_test_case.RestTestCase

Test that the /gp/ei endpoint does the same thing as the C++ interface.

endpoint = '/gp/ei'
precompute_gaussian_process_data = True
test_interface_returns_same_as_cpp()[source]

Test that the /gp/ei endpoint does the same thing as the C++ interface.

moe.tests.views.rest.gp_hyper_opt_test module

Test class for gp_hyper_opt view.

class moe.tests.views.rest.gp_hyper_opt_test.TestGpHyperOptViews[source]

Bases: moe.tests.optimal_learning.python.gaussian_process_test_case.GaussianProcessTestCase, moe.tests.views.rest_test_case.RestTestCase

Integration test for the /gp/hyper_opt endpoint.

precompute_gaussian_process_data = True
test_hyperparameters_passed_through()[source]

Test that the hyperparameters get passed through to the endpoint.

test_interface_returns_same_as_cpp()[source]

Integration test for the /gp/hyper_opt endpoint.

test_optimizer_params_passed_through()[source]

Test that the optimizer parameters get passed through to the endpoint.

moe.tests.views.rest.gp_mean_var_test module

Test class for gp_mean_var view.

class moe.tests.views.rest.gp_mean_var_test.TestGpMeanVarView[source]

Bases: moe.tests.optimal_learning.python.gaussian_process_test_case.GaussianProcessTestCase, moe.tests.views.rest_test_case.RestTestCase

Test that the /gp/mean_var endpoint does the same thing as the C++ interface.

endpoint = '/gp/mean_var'
num_sampled_list = (1, 2, 3, 11, 20)
precompute_gaussian_process_data = True
test_interfaces_equivalent()[source]

Test that the /gp/mean, var, mean_var, etc. endpoints are consistent.

test_mean_var_interface_returns_same_as_cpp()[source]

Test that the /gp/mean_var endpoint does the same thing as the C++ interface.

moe.tests.views.rest.gp_next_points_test module

Test class for gp_next_points_epi view.

class moe.tests.views.rest.gp_next_points_test.TestGpNextPointsViews[source]

Bases: moe.tests.optimal_learning.python.gaussian_process_test_case.GaussianProcessTestCase, moe.tests.views.rest_test_case.RestTestCase

Integration test for the /gp/next_points/* endpoints.

num_sampled_list = (1, 2, 10)
precompute_gaussian_process_data = True
test_all_constant_liar_methods_function()[source]

Test that each contant liar lie_method runs to completion. This is an integration test.

test_interface_returns_same_as_cpp()[source]

Integration test for the /gp/next_points/* endpoints.

test_optimizer_params_passed_through()[source]

Test that the optimizer parameters get passed through to the endpoint.

Module contents

Tests for the MOE REST interface.