修改: PriceSystem/sell_price/zhuge0118A.py
修改: PriceSystem/test.py
This commit is contained in:
@@ -505,6 +505,7 @@ def commonprice(ct, rl, p):
|
||||
# t1=time.time()
|
||||
|
||||
#print("location['lng2'][0]",location['lng2'].iloc[0])
|
||||
|
||||
dd = neighbor(location['lng2'].iloc[0], location['lat2'].iloc[0], 5, ct, rl, p)
|
||||
# print(time.time()-t1,'t1'*10)
|
||||
# print('dd=',dd,'dd'*20)
|
||||
@@ -542,29 +543,21 @@ def commonprice(ct, rl, p):
|
||||
#print(time.time() - svr_time, 'e' * 10)
|
||||
# print('other1=',other1)
|
||||
return other1, dd2.shape[0]
|
||||
|
||||
else:
|
||||
dd3 = neighbor(location['lng2'].iloc[0], location['lat2'].iloc[0], 100, ct, rl, p)
|
||||
|
||||
dd6 = neighbor_km(location['lng2'].iloc[0], location['lat2'].iloc[0], 30, ct, rl, p)
|
||||
# print('dd2=',dd2,'@'*60)
|
||||
if dd3.shape[0] >= factor:
|
||||
if dd6.shape[0] >= 20:
|
||||
# svr_time=time.time()
|
||||
other1 = svr(dd3, lk)
|
||||
other1 = svr(dd6, lk)
|
||||
|
||||
#print('#'*20)
|
||||
# print(time.time()-svr_time,'svr'*10)
|
||||
# print('other1=',other1)
|
||||
return other1, dd3.shape[0]
|
||||
return other1, dd6.shape[0]
|
||||
else:
|
||||
|
||||
dd6 = neighbor_km(location['lng2'].iloc[0], location['lat2'].iloc[0], 30, ct, rl, p)
|
||||
# print('dd2=',dd2,'@'*60)
|
||||
if dd6.shape[0] >= 20:
|
||||
# svr_time=time.time()
|
||||
other1 = svr(dd6, lk)
|
||||
|
||||
#print('#'*20)
|
||||
# print(time.time()-svr_time,'svr'*10)
|
||||
# print('other1=',other1)
|
||||
return other1, dd6.shape[0]
|
||||
else:
|
||||
return '没有周围小区数据', 0
|
||||
return '没有周围小区数据', 0
|
||||
|
||||
def region_district_list(ct, rl):
|
||||
# import pandas
|
||||
|
||||
Reference in New Issue
Block a user