Skip to content

Commit

Permalink
Update for new API
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbeel committed Nov 6, 2024
1 parent 8d0a0f0 commit 3a3ef94
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions howso/visuals/visuals.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,24 +812,24 @@ def plot_umap(
case_indices = sampled_cases[[".session", ".session_training_index"]]
case_indices = case_indices.values.tolist()
else:
sampled_cases = t.get_cases(
sampled_cases = t.get_cases(
features=[".session", ".session_training_index"] + list(t.features),
session=t.get_sessions()[0]["id"],
)

distances = t.get_distances(
case_indices=case_indices,
action_feature=action_feature,
use_case_weights=use_case_weights,
weight_feature=weight_feature,
)["distances"]
hyperparameter_map = t.get_params(action_feature=".targetless")["hyperparameter_map"]

n_neighbors = n_neighbors or hyperparameter_map["k"]
p = hyperparameter_map["p"]

if min_dist is None:
residuals = t.react_aggregate(
residuals = t.get_prediction_stats(
action_feature=action_feature,
details={"feature_residuals_full": True},
use_case_weights=use_case_weights,
Expand Down

0 comments on commit 3a3ef94

Please sign in to comment.