Update app.py
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def calculate_selected_score_i2v(df, selected_columns):
|
|
162 |
def get_final_score(df, selected_columns):
|
163 |
normalize_df = get_normalized_df(df)
|
164 |
#final_score = normalize_df.drop('name', axis=1).sum(axis=1)
|
165 |
-
for name in normalize_df.drop('Model Name (clickable)', axis=1).drop('Source', axis=1):
|
166 |
normalize_df[name] = normalize_df[name]*DIM_WEIGHT[name]
|
167 |
quality_score = normalize_df[QUALITY_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in QUALITY_LIST])
|
168 |
semantic_score = normalize_df[SEMANTIC_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in SEMANTIC_LIST ])
|
|
|
162 |
def get_final_score(df, selected_columns):
|
163 |
normalize_df = get_normalized_df(df)
|
164 |
#final_score = normalize_df.drop('name', axis=1).sum(axis=1)
|
165 |
+
for name in normalize_df.drop('Model Name (clickable)', axis=1).drop('Source', axis=1).drop('Mail', axis=1):
|
166 |
normalize_df[name] = normalize_df[name]*DIM_WEIGHT[name]
|
167 |
quality_score = normalize_df[QUALITY_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in QUALITY_LIST])
|
168 |
semantic_score = normalize_df[SEMANTIC_LIST].sum(axis=1)/sum([DIM_WEIGHT[i] for i in SEMANTIC_LIST ])
|