Skip to content

Commit

Permalink
decrease predict iters to 5
Browse files Browse the repository at this point in the history
  • Loading branch information
rfl-urbaniak committed Oct 8, 2024
1 parent be72dbf commit dbddefd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cities/deployment/tracts_minneapolis/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@

load_dotenv()

local_user = os.getenv("USER")
if local_user == "rafal":
load_dotenv(os.path.expanduser("~/.env_pw"))


class TractsModelPredictor:
kwargs = {
Expand Down Expand Up @@ -228,7 +232,7 @@ def predict_cumulative(self, conn, intervention):
predictor = TractsModelPredictor(conn)
start = time.time()

for iter in range(100): # added for time testing
for iter in range(5): # added for time testing
result = predictor.predict_cumulative(
conn,
intervention={
Expand Down

0 comments on commit dbddefd

Please sign in to comment.