等级改为6
This commit is contained in:
@@ -82,11 +82,11 @@ def calc_estate_charge_rating(community_summary_df):
|
|||||||
actions = list()
|
actions = list()
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
if len(df) < 5:
|
if len(df) < 6:
|
||||||
# 对于样本低于5的直接排名
|
# 对于样本低于5的直接排名
|
||||||
df[target] = df['estate_charge'].rank(method='dense', ascending=False).astype(int)
|
df[target] = df['estate_charge'].rank(method='dense', ascending=False).astype(int)
|
||||||
else:
|
else:
|
||||||
df = gmm_train(5, df, source, target)
|
df = gmm_train(6, df, source, target)
|
||||||
# 批量更新
|
# 批量更新
|
||||||
for index, item in df.iterrows():
|
for index, item in df.iterrows():
|
||||||
row = dict()
|
row = dict()
|
||||||
|
|||||||
Reference in New Issue
Block a user