Update app.py
Browse filesremoved weighted sentiments
app.py
CHANGED
|
@@ -15,16 +15,11 @@ def run_app(feedback_file, adoption_file, num_participants, target_population):
|
|
| 15 |
processed_df = transform_sentiments(df)
|
| 16 |
sentiment_metrics = compute_sentiment_metrics(processed_df, feedback_volume)
|
| 17 |
|
| 18 |
-
w_pos = sentiment_metrics["Weighted Positive"]
|
| 19 |
-
w_neg = sentiment_metrics["Weighted Negative"]
|
| 20 |
-
|
| 21 |
# Step 3: Compute Participation Adoption Index (PAI)
|
| 22 |
pai_calculator = ParticipationAdoptionIndex(
|
| 23 |
num_participants=num_participants,
|
| 24 |
target_population=target_population,
|
| 25 |
-
feedback_volume=feedback_volume
|
| 26 |
-
w_pos=w_pos,
|
| 27 |
-
w_neg=w_neg
|
| 28 |
)
|
| 29 |
|
| 30 |
pai_1, pai_2 = pai_calculator.compute_pai(participants_by_group)
|
|
|
|
| 15 |
processed_df = transform_sentiments(df)
|
| 16 |
sentiment_metrics = compute_sentiment_metrics(processed_df, feedback_volume)
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
# Step 3: Compute Participation Adoption Index (PAI)
|
| 19 |
pai_calculator = ParticipationAdoptionIndex(
|
| 20 |
num_participants=num_participants,
|
| 21 |
target_population=target_population,
|
| 22 |
+
feedback_volume=feedback_volume
|
|
|
|
|
|
|
| 23 |
)
|
| 24 |
|
| 25 |
pai_1, pai_2 = pai_calculator.compute_pai(participants_by_group)
|