Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ion-eval-private-data into notebook_code
  • Loading branch information
corinne-hcr committed Jul 19, 2021
2 parents 6eb56b1 + 102b9bd commit 1fba74a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tour_model_eval/build_save_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def main():
# compute unique label sets and their probabilities in one cluster
# 'p' refers to probability
unique_labels = user_label_df.groupby(user_label_df.columns.tolist()).size().reset_index(name='count')
unique_labels['p'] = [unique_labels.iloc[i]['count'] / sum_trips for i in range(len(unique_labels))]
unique_labels['p'] = unique_labels.count / sum_trips
labels_columns = user_label_df.columns.to_list()
for i in range(len(unique_labels)):
one_set_labels = {}
Expand Down Expand Up @@ -165,4 +165,3 @@ def main():




0 comments on commit 1fba74a

Please sign in to comment.