def text_experiment_different_hash(jikken_experiment):
    (exp, expected_variables, _, tmpdir) = jikken_experiment
    exp_diff_dir = Experiment(variables=expected_variables, code_dir=os.getcwd())
    assert (exp.parameters_hash == exp_diff_dir.parameters_hash)
    assert (exp.schema_hash == exp_diff_dir.schema_hash)
    assert (exp_diff_dir.hash != exp.hash)
    diff_variables = copy.deepcopy(expected_variables)
    diff_variables['training_parameters']['batch_size'] = 200
    exp_diff_variables = Experiment(name='exp1', variables=diff_variables, code_dir=tmpdir.strpath)
    assert (exp.parameters_hash != exp_diff_dir.parameters_hash)
    assert (exp.schema_hash == exp_diff_dir.schema_hash)
    assert (exp_diff_variables.hash != exp.hash)
def text_experiment_different_hash(jikken_experiment):
    (exp, expected_variables, _, tmpdir) = jikken_experiment
    exp_diff_dir = Experiment(variables=expected_variables, code_dir=os.getcwd())
    assert (exp.parameters_hash == exp_diff_dir.parameters_hash)
    assert (exp.schema_hash == exp_diff_dir.schema_hash)
    assert (exp_diff_dir.hash != exp.hash)
    diff_variables = copy.deepcopy(expected_variables)
    diff_variables['training_parameters']['batch_size'] = 200
    exp_diff_variables = Experiment(name='exp1', variables=diff_variables, code_dir=tmpdir.strpath)
    assert (exp.parameters_hash != exp_diff_dir.parameters_hash)
    assert (exp.schema_hash == exp_diff_dir.schema_hash)
    assert (exp_diff_variables.hash != exp.hash)