Skip to content

Commit

Permalink
Bugs fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Old-Shatterhand committed Mar 28, 2024
1 parent ad728e5 commit 563e5d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion datasail/solver/cluster_1d.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import numpy as np

from datasail.solver.utils import solve, cluster_y_constraints, compute_limits, stratification_constraints
from experiments.ablation import david
# from experiments.ablation import david


def solve_c1(
Expand Down
4 changes: 2 additions & 2 deletions datasail/solver/solve.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ def run_solver(
for c in e_dataset.cluster_names]) if e_dataset.cluster_stratification is not None else None,
e_similarities=e_dataset.cluster_similarity,
e_distances=e_dataset.cluster_distance,
e_weights=np.ndarray([e_dataset.cluster_weights.get(c, 1) for c in e_dataset.cluster_names]),
e_weights=np.array([e_dataset.cluster_weights.get(c, 1) for c in e_dataset.cluster_names]),
f_clusters=f_dataset.cluster_names,
f_s_matrix=np.stack([f_dataset.cluster_stratification.get(c, np.zeros(len(dataset.classes)))
for c in f_dataset.cluster_names]) if f_dataset.cluster_stratification is not None else None,
f_similarities=f_dataset.cluster_similarity,
f_distances=f_dataset.cluster_distance,
f_weights=np.ndarray([f_dataset.cluster_weights.get(c, 1) for c in f_dataset.cluster_names]),
f_weights=np.array([f_dataset.cluster_weights.get(c, 1) for c in f_dataset.cluster_names]),
inter=cluster_inter,
delta=delta,
epsilon=epsilon,
Expand Down

0 comments on commit 563e5d0

Please sign in to comment.