Spaces:
Running
Running
jasonshaoshun
commited on
Commit
·
924fb19
1
Parent(s):
b56a213
debug
Browse files
app.py
CHANGED
@@ -120,23 +120,19 @@ def init_leaderboard_mib_subgraph(dataframe, track):
|
|
120 |
)
|
121 |
|
122 |
def init_leaderboard_mib_causalgraph(dataframe, track):
|
123 |
-
print("
|
124 |
-
print(
|
|
|
125 |
|
126 |
-
|
127 |
-
raise ValueError("Leaderboard DataFrame is empty or None.")
|
128 |
-
|
129 |
-
# Let's check our expected columns
|
130 |
expected_cols = [c.name for c in fields(AutoEvalColumn_mib_causalgraph)]
|
131 |
-
print(
|
132 |
|
133 |
-
|
134 |
missing_cols = [col for col in expected_cols if col not in dataframe.columns]
|
135 |
-
|
136 |
-
print(f"Missing columns: {missing_cols}")
|
137 |
|
138 |
-
|
139 |
-
print("\nFirst few rows of DataFrame:")
|
140 |
print(dataframe.head().to_string())
|
141 |
|
142 |
return Leaderboard(
|
|
|
120 |
)
|
121 |
|
122 |
def init_leaderboard_mib_causalgraph(dataframe, track):
|
123 |
+
print("Debugging column issues:")
|
124 |
+
print("\nActual DataFrame columns:")
|
125 |
+
print(dataframe.columns.tolist())
|
126 |
|
127 |
+
print("\nExpected columns for Leaderboard:")
|
|
|
|
|
|
|
128 |
expected_cols = [c.name for c in fields(AutoEvalColumn_mib_causalgraph)]
|
129 |
+
print(expected_cols)
|
130 |
|
131 |
+
print("\nMissing columns:")
|
132 |
missing_cols = [col for col in expected_cols if col not in dataframe.columns]
|
133 |
+
print(missing_cols)
|
|
|
134 |
|
135 |
+
print("\nSample of DataFrame content:")
|
|
|
136 |
print(dataframe.head().to_string())
|
137 |
|
138 |
return Leaderboard(
|