Skip to content

Commit

Permalink
Remove means vector
Browse files Browse the repository at this point in the history
  • Loading branch information
aarmey committed Nov 25, 2024
1 parent d63937e commit ca12a46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion cellcommunicationpf2/cc_pf2.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def project_tensor(tensor: np.ndarray, proj_matrix: np.ndarray) -> np.ndarray:

def project_data(
X_list: list,
means: np.ndarray,
factors: list[np.ndarray],
weights: np.ndarray = None,
full_tensor: np.ndarray = None,
Expand Down
6 changes: 1 addition & 5 deletions cellcommunicationpf2/tests/test_OP.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ def test_project_data():
# Generate random X_list
X_list = [np.random.rand(cells, cells, LR) for _ in range(num_tensors)]

# Generate random means matrix
means = np.random.rand(cells)

# Generate random factors: A (obs x rank), B (C x rank), C (C x rank), D (LR x rank)
A = np.random.rand(obs, rank)
B = np.random.rand(rank, rank)
Expand All @@ -30,7 +27,7 @@ def test_project_data():
factors = [A, B, C, D]

# Call the project_data method
projections, projected_X = project_data(X_list, means, factors)
projections, projected_X = project_data(X_list, factors)

# Assertions
assert len(projections) == num_tensors
Expand Down Expand Up @@ -70,7 +67,6 @@ def test_project_data_output():
# Call the project_data method using the recreated tensors to get the projected_X that gets solved by our method
projections_recreated, _ = project_data(
recreated_tensors,
np.zeros(cells),
[
np.zeros((obs, rank)),
np.zeros((rank, rank)),
Expand Down

0 comments on commit ca12a46

Please sign in to comment.