Skip to content

Commit

Permalink
🎨 format files
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed May 16, 2024
1 parent 4164f41 commit 439c8cf
Show file tree
Hide file tree
Showing 3 changed files with 243 additions and 139 deletions.
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

html_theme = "sphinx_rtd_theme"
html_theme_options = {
"collapse_navigation" : False,
"collapse_navigation": False,
}
html_static_path = []

Expand Down
16 changes: 8 additions & 8 deletions supplementary_files/create_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
}

COR_THRES = 0.02
PAIRS_OF_INTEREST = [(1,2),(3,4)] # ,(77,75),(99,70),(38,2),(67,62)]
PAIRS_OF_INTEREST = [(1, 2), (3, 4)] # ,(77,75),(99,70),(38,2),(67,62)]

# Path to store output files
outpath = Path("./") / f"dataset_creation_outputs_{PROJECT_NAME}"
Expand Down Expand Up @@ -248,12 +248,12 @@ def save_splitted_datasets(
)
fig.savefig(outpath / f"Covariance_matrix_{PROJECT_NAME}.png")

# dataset = np.array(
# [
# list(np.random.multivariate_normal(feat_means, covariance_matrix))
# for _ in range(N_SAMPLES)
# ]
# )
# dataset = np.array(
# [
# list(np.random.multivariate_normal(feat_means, covariance_matrix))
# for _ in range(N_SAMPLES)
# ]
# )

dataset = np.random.multivariate_normal(feat_means, covariance_matrix, N_SAMPLES)
print(dataset.shape)
Expand Down Expand Up @@ -296,4 +296,4 @@ def save_splitted_datasets(
# Write tsv files with feature values for all samples in both datasets:
save_splitted_datasets(
SETTINGS, PROJECT_NAME, dataset, all_feature_names, N_SAMPLES, outpath
)
)
Loading

0 comments on commit 439c8cf

Please sign in to comment.