Skip to content
Snippets Groups Projects
Commit 2efa7e3d authored by Thomas Purcell's avatar Thomas Purcell
Browse files

Bug Fix:

gnu compilers should now pass checks for featur space size
Corrected where phi.txt is outputted to
parent 4a3570e4
Branches
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ def test_feature_space(): ...@@ -53,7 +53,7 @@ def test_feature_space():
inputs.calc_type = "regression" inputs.calc_type = "regression"
inputs.max_rung = 2 inputs.max_rung = 2
inputs.n_sis_select = 10 inputs.n_sis_select = 10
inputs.phi_out_file = "feature_space/phi.txt" inputs.phi_out_file = str(parent / "feature_space" / "phi.txt")
try: try:
inputs.n_rung_generate = 2 inputs.n_rung_generate = 2
...@@ -138,12 +138,12 @@ def test_feature_space(): ...@@ -138,12 +138,12 @@ def test_feature_space():
inputs.n_sis_select, inputs.n_sis_select,
inputs.cross_cor_max, inputs.cross_cor_max,
) )
assert feat_space.n_feat == feat_space_2.n_feat assert feat_space.n_feat == feat_space_2.n_feat
feat_space_2.sis(inputs.prop_train) feat_space_2.sis(inputs.prop_train)
assert feat_space.phi_selected[0].expr == feat_space_2.phi_selected[0].expr assert feat_space.phi_selected[0].expr == feat_space_2.phi_selected[0].expr
shutil.rmtree(f"{parent}/feature_space/")
shutil.rmtree("feature_space/") shutil.rmtree("feature_space/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment