-
Notifications
You must be signed in to change notification settings - Fork 3
Add code diff chain visualization #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nikivanstein
wants to merge
9
commits into
main
Choose a base branch
from
feature/codex-add-interactive-code-diff-visualizations-nqufce
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
354fe8d
Add code diff chain visualization
nikivanstein a23f422
Improve diff chain visualization
nikivanstein 10443ab
Enhance diff chain rendering
nikivanstein 0b2663d
Ensure HTML spans preserve whitespace (#55)
nikivanstein 7d42fcc
Fix solution card code highlighting (#57)
nikivanstein 86250b0
Does not work as expected yet.
nikivanstein 31ac02e
single comparison working.
anantashahane dd9e21d
Working diff viewer.
anantashahane 9aefe80
Merge branch 'main' of https://github.com/XAI-liacs/BLADE into featur…
nikivanstein File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -177,6 +177,7 @@ BBOB*.zip | |
| /run/ | ||
| /setup/ | ||
| .vscode/ | ||
| .python-version | ||
| _site/ | ||
|
|
||
| # Apple File System | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,101 @@ | ||
| ,id,fitness,name,description,configspace,generation,feedback,error,parent_ids,operator,metadata,task_prompt,method_name,problem_name,seed,_id,cummax_fitness,eval | ||
| 0,18084962-51ed-4376-8b09-caa9e3c69568,5.955078389147237,AutoCorrCandidate,"Generates a nearly-optimal non-negative function by leveraging a piecewise-constant structure with optimized heights over a central region, tapering to zero at the edges to reduce autocorrelation.",,0,"C1 ratio = 5.95508, best known = 1.5053",,[],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,0,5.955078389147237,1 | ||
| 1,43b5aacb-4de5-45a9-b846-f2331c03b92f,2.108060230292329,AutoCorrCandidate,"Refines the piecewise-constant function by optimizing the heights of the central, tapering, and edge regions to minimize autocorrelation.",,1,"C1 ratio = 2.10806, best known = 1.5053",,['18084962-51ed-4376-8b09-caa9e3c69568'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,1,5.955078389147237,2 | ||
| 2,f053dcc7-b434-43ac-a0d0-0167c7569ed2,2.244990298343852,AutoCorrCandidate,"Optimizes a piecewise-constant function with central flat, tapered, and constant-height edge regions, incorporating a dynamically adjusted sigmoid taper and refined parameter bounds to further minimize autocorrelation.",,2,"C1 ratio = 2.24499, best known = 1.5053",,['43b5aacb-4de5-45a9-b846-f2331c03b92f'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,2,5.955078389147237,3 | ||
| 3,dc80fb23-aa09-4b26-9a7a-1c0f535b08a9,2.14625421730855,AutoCorrCandidate,"Optimizes a piecewise-constant function with a central flat region, cosine tapers, and optimized edge values using a more robust optimizer and a refined parameterization, adding a small constant offset to avoid zero values, and using a larger number of iterations.",,3,"C1 ratio = 2.14625, best known = 1.5053",,['43b5aacb-4de5-45a9-b846-f2331c03b92f'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,3,5.955078389147237,4 | ||
| 4,7e44f5a8-b458-4b51-9e44-87cbd6e3307f,0.0,AutoCorrCandidate,Optimizes a piecewise-constant function with an added Gaussian component and refined tapering to minimize autocorrelation.,,4,calc-error Integral ∫f must be > 0 for C1,calc-failed,['43b5aacb-4de5-45a9-b846-f2331c03b92f'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,4,5.955078389147237,5 | ||
| 5,d236ef84-7086-4204-882b-7151cddc3692,2.072361474351445,AutoCorrCandidate,"Optimizes a piecewise-quadratic function with a central flat region, tapering quadratic sections, and constant edges to minimize autocorrelation.",,5,"C1 ratio = 2.07236, best known = 1.5053",,['43b5aacb-4de5-45a9-b846-f2331c03b92f'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,5,5.955078389147237,6 | ||
| 6,617268ca-e233-47c4-9a64-e6889dc5560b,2.000000000000122,AutoCorrCandidate,"Optimizes a piecewise-cubic function with smooth transitions between regions by directly controlling the function values at key points, aiming for a flatter autocorrelation peak.",,6,"C1 ratio = 2, best known = 1.5053",,['d236ef84-7086-4204-882b-7151cddc3692'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,6,5.955078389147237,7 | ||
| 7,01594200-c881-458f-b751-38ebd030cf6c,10.0,AutoCorrCandidate,"Optimizes a raised cosine function with adjustable parameters for a flatter autocorrelation peak, simplifying the parameter space for faster convergence.",,7,"C1 ratio = 10, best known = 1.5053",,['617268ca-e233-47c4-9a64-e6889dc5560b'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,7,10.0,8 | ||
| 8,06529ca8-7515-41b3-bfca-120341bfc009,2.000000000000957,AutoCorrCandidate,Optimize a piecewise-quadratic function with a central flat region and parabolic tapers to minimize autocorrelation peak relative to integrated function square.,,8,"C1 ratio = 2, best known = 1.5053",,['617268ca-e233-47c4-9a64-e6889dc5560b'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,8,10.0,9 | ||
| 9,f2400a0c-cca8-4bb5-9498-b669eb35e167,0.0,AutoCorrCandidate,Optimizes a piecewise-linear function with a central flat region and linearly decaying edges to minimize the autocorrelation peak relative to the integral squared.,,9,"exec-error could not broadcast input array from shape (240,) into shape (120,)",exec-failed,['617268ca-e233-47c4-9a64-e6889dc5560b'],,{}," | ||
|
|
||
| Write a python class with function `__call__`, that returns a list of floats f of length N. | ||
| - Where N is number of bins over [-1/4, 1/4] with discretization of dx = 0.5 / N. | ||
| - Auto-convolution of `g = dx * conv(f, f, mode=""full"")`, where g lies in range [-1/2, 1/2]. | ||
| - Optimise for objective of minimize max_t (f*f)(t) / (∫ f)^2, where all entries in the list f must be greater than or equal to 0 and do not normalise the f, scaling does not change the score. | ||
| - Symmetry or piecewise-constant structure is allowed if helpful. | ||
| - Set N = 600 as default. | ||
|
|
||
| ",LLaMEA,auto_corr_ineq_1,0,9,10.0,10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
get_code_lineagesetsparent = Nonewhen an ID is missing, but immediately dereferencesparent["parent_ids"]. If the dataset is filtered or missing ancestors (common when viewing a subset of runs), this will crash instead of returning the partial lineage. Consider breaking/raising whenparent is Nonebefore accessing its fields.Useful? React with 👍 / 👎.