Skip to content

Commit

Permalink
preds to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
rfl-urbaniak committed Oct 8, 2024
1 parent 1e27a1c commit be72dbf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,4 @@ data/minneapolis/sourced/parcel_to_parking_info_mappings/**
cities/deployment/tracts_minneapolis/tracts_model_guide.pkl
cities/deployment/tracts_minneapolis/tracts_model_params.pth
/build/
docs/experimental_notebooks/zoning/interactions_preds.dill
23 changes: 12 additions & 11 deletions cities/deployment/tracts_minneapolis/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,16 +228,17 @@ def predict_cumulative(self, conn, intervention):
predictor = TractsModelPredictor(conn)
start = time.time()

result = predictor.predict_cumulative(
conn,
intervention={
"radius_blue": 106.7,
"limit_blue": 0,
"radius_yellow_line": 402.3,
"radius_yellow_stop": 804.7,
"limit_yellow": 0.5,
"reform_year": 2015,
},
)
for iter in range(100): # added for time testing
result = predictor.predict_cumulative(
conn,
intervention={
"radius_blue": 106.7,
"limit_blue": 0,
"radius_yellow_line": 402.3,
"radius_yellow_stop": 804.7,
"limit_yellow": 0.5,
"reform_year": 2015,
},
)
end = time.time()
print(f"Counterfactual in {end - start} seconds")

0 comments on commit be72dbf

Please sign in to comment.