Skip to content

Commit

Permalink
minutes back to seconds for gen time
Browse files Browse the repository at this point in the history
  • Loading branch information
manbearshark committed Sep 17, 2022
1 parent 4f04072 commit 919ec89
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion generators/generate_interactions_personalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def generate_interactions(users_df, products_df):
if (time.time() > next_update_progress):
rate = interactions / (time.time() - start_time_progress)
to_go = (min_interactions - interactions) / rate
print(f'Generated {interactions} interactions so far (about {int(to_go/60)} minutes to go)')
print(f'Generated {interactions} interactions so far (about {int(to_go)} seconds to go)')
next_update_progress += PROGRESS_MONITOR_SECONDS_UPDATE

# Pick a random user
Expand Down
3 changes: 0 additions & 3 deletions generators/send_to_amplitude.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: MIT-0

import datagenerator
import json
import requests
import yaml

# Amplitude event support
# This follows the Amplitude V2 HTTP Bulk API spec, here:
Expand All @@ -13,7 +11,6 @@
# These classes accept a user, platform, and general event properties and map them
# into an Amplitude API compatible represenation.


amplitude_interactions_file = 'src/aws-lambda/personalize-pre-create-resources/data/amplitude/interactions.json'
amplitude_key = 'f6cdf64a6db24778bb9ce82188c19a95'

Expand Down

0 comments on commit 919ec89

Please sign in to comment.