Skip to content

Conversation

@Dinu23
Copy link
Contributor

@Dinu23 Dinu23 commented Dec 3, 2025

-> update structure of the project
-> added plot arguments
-> new functionalities

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

})
evals = [1, 2]
result = align_data(df, evals, group_cols=("exp_id",), x_col="evaluations", y_col="raw_y", output="long", maximization=False)
self.assertTrue(set(result["exp_id"].to_list()) == {1, 2})
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.
})
evals = [10, 20, 30]
result = align_data(df, evals, group_cols=("data_id",), x_col="steps", y_col="score", output="long", maximization=False)
self.assertTrue(result["steps"].to_list() == [10, 20, 30])
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.
})
evals = [10, 20, 30]
result = align_data(df, evals, group_cols=("data_id",), x_col="steps", y_col="score", output="long", maximization=False)
self.assertTrue(result["steps"].to_list() == [10, 20, 30])
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.

self.assertIn("AOCC", result.columns)
aocc_val = result["AOCC"][0]
self.assertTrue(aocc_val == 6.5)
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.
self.assertIn("AOCC", result.columns)
aocc_f1_val = result[result["function_name"] == "f1"]["AOCC"].iloc[0]
aocc_f2_val = result[result["function_name"] == "f2"]["AOCC"].iloc[0]
self.assertTrue(aocc_f1_val == 5.5)
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.

def test_with_f_min_f_max(self):
result = aggregate_running_time(self.df, f_min=0.2, f_max=0.5, return_as_pandas=False)
self.assertTrue(result["raw_y"].min() >= 0.2)
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a >= b) cannot provide an informative message. Using assertGreaterEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.
def test_with_f_min_f_max(self):
result = aggregate_running_time(self.df, f_min=0.2, f_max=0.5, return_as_pandas=False)
self.assertTrue(result["raw_y"].min() >= 0.2)
self.assertTrue(result["raw_y"].max() <= 0.5)
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a <= b) cannot provide an informative message. Using assertLessEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.
})
result = get_tournament_ratings(data, nrounds=25)
self.assertEqual(len(result), 2)
self.assertTrue(set(result["algorithm_name"]) == {"A", "B"})
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assertTrue(a == b) cannot provide an informative message. Using assertEqual(a, b) instead will give more informative messages.

Copilot uses AI. Check for mistakes.

def test_basic(self):
evals = [1, 10, 100]
comparison, benchmark = get_robustrank_over_time(
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable comparison is not used.

Copilot uses AI. Check for mistakes.

def test_basic(self):
evals = [1, 10, 100]
comparison, benchmark = get_robustrank_over_time(
Copy link

Copilot AI Dec 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variable benchmark is not used.

Copilot uses AI. Check for mistakes.
@Dinu23 Dinu23 requested a review from jacobdenobel December 8, 2025 11:58
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove .vscode settings from repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants