c93feefef7496e761869af788358e9145d6b1794,tests/integ/test_experiments_analytics.py,,test_experiment_analytics_search_by_nested_filter_sort_ascending,#Any#,101
Before Change
)
sm.associate_trial_component(TrialComponentName=trial_component_name, TrialName=trial_name)
time.sleep(15) // wait for search to get updated TODO [owen-t]: Replace with retry
search_exp = {
"Filters": [
After Change
def test_experiment_analytics_search_by_nested_filter_sort_ascending(sagemaker_session):
with experiment(sagemaker_session) as experiment_name:
search_exp = {
"Filters": [
{"Name": "Parents.ExperimentName", "Operator": "Equals", "Value": experiment_name},
{"Name": "Parameters.hp1", "Operator": "GreaterThanOrEqualTo", "Value": "10"},
]
}
analytics = ExperimentAnalytics(
sagemaker_session=sagemaker_session,
search_expression=search_exp,
sort_by="Parameters.hp1",
sort_order="Ascending",
)
assert list(analytics.dataframe().columns) == ["TrialComponentName", "DisplayName", "hp1"]
assert (
len(analytics.dataframe()) > 5
) // TODO [owen-t] Replace with == 10 and put test in retry block
assert list(analytics.dataframe()["hp1"].values) == sorted(
analytics.dataframe()["hp1"].values
)
def test_experiment_analytics_search_by_nested_filter_sort_descending(sagemaker_session):
with experiment(sagemaker_session) as experiment_name:
search_exp = {
"Filters": [
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances Project Name: aws/sagemaker-python-sdk
Commit Name: c93feefef7496e761869af788358e9145d6b1794
Time: 2020-01-20
Author: 6631887+laurenyu@users.noreply.github.com
File Name: tests/integ/test_experiments_analytics.py
Class Name:
Method Name: test_experiment_analytics_search_by_nested_filter_sort_ascending
Project Name: aws/sagemaker-python-sdk
Commit Name: c93feefef7496e761869af788358e9145d6b1794
Time: 2020-01-20
Author: 6631887+laurenyu@users.noreply.github.com
File Name: tests/integ/test_experiments_analytics.py
Class Name:
Method Name: test_experiment_analytics
Project Name: aws/sagemaker-python-sdk
Commit Name: c93feefef7496e761869af788358e9145d6b1794
Time: 2020-01-20
Author: 6631887+laurenyu@users.noreply.github.com
File Name: tests/integ/test_experiments_analytics.py
Class Name:
Method Name: test_experiment_analytics_search_by_nested_filter_sort_descending
Project Name: aws/sagemaker-python-sdk
Commit Name: c93feefef7496e761869af788358e9145d6b1794
Time: 2020-01-20
Author: 6631887+laurenyu@users.noreply.github.com
File Name: tests/integ/test_experiments_analytics.py
Class Name:
Method Name: test_experiment_analytics_pagination
Project Name: aws/sagemaker-python-sdk
Commit Name: c93feefef7496e761869af788358e9145d6b1794
Time: 2020-01-20
Author: 6631887+laurenyu@users.noreply.github.com
File Name: tests/integ/test_experiments_analytics.py
Class Name:
Method Name: test_experiment_analytics_search_by_nested_filter