Update function name of location_base.py

pull/95/head
Meng Li 2020-07-19 21:50:12 -04:00
parent 923a5213ef
commit 6c1b93efa9
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ def base_location_features(location_data, day_segment, requested_features, dbsca
location_data = location_data[(location_data['double_latitude']!=0.0) & (location_data['double_longitude']!=0.0)] location_data = location_data[(location_data['double_latitude']!=0.0) & (location_data['double_longitude']!=0.0)]
# exclude dates when "double_latitude" and "double_longitude" values are constant # exclude dates when "double_latitude" and "double_longitude" values are constant
location_data = dropDatesOneLocation(location_data) location_data = dropDatesSameLocationAllDay(location_data)
if "locationvariance" in features_to_compute: if "locationvariance" in features_to_compute:
location_features["location_" + day_segment + "_locationvariance"] = location_data.groupby(['local_date'])['double_latitude'].var() + location_data.groupby(['local_date'])['double_longitude'].var() location_features["location_" + day_segment + "_locationvariance"] = location_data.groupby(['local_date'])['double_latitude'].var() + location_data.groupby(['local_date'])['double_longitude'].var()