Skip to content

Add Files Relating to Color Convexity Paper#3

Merged
shanest merged 3 commits intomainfrom
colors
Sep 24, 2025
Merged

Add Files Relating to Color Convexity Paper#3
shanest merged 3 commits intomainfrom
colors

Conversation

@Ashvin-Ranjan
Copy link
Collaborator

  • Includes program files needed to run the experiments
  • Includes documentation which explains how to run the experiments
    • TODO: Finish up the documentation once issues have been addressed
  • Includes minimized .csv files for easy data processing
  • Does not include larger model files nor data which is used from other projects
    • Documentation does include details on how to get all of this data

Ashvin-Ranjan and others added 2 commits August 21, 2025 17:35
- Includes program files needed to run the experiments
- Includes documentation which explains how to run the experiments
  - TODO: Finish up the documentation once issues have been addressed
- Includes minimized `.csv` files for easy data processing
- Does not include larger model files nor data which is used from other projects
  - Documentation does include details on how to get all of this data
Copy link
Contributor

@shanest shanest left a comment

Choose a reason for hiding this comment

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

Great stuff Ash! A few little things here and there, basically all down to code style type of things


## How To Run

### Installing The Data
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd put little scripts in the data folder for downloading these files via curl

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For the OSF data I am not exactly sure how to download all of the files dynamically, do you have any examples that I could look at? For the others I should be able to create something.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good point! Not sure off the top of my head, but just pointing to the OSF repo in README will be enough ehere

closest = get_closest(points, p, amount + 1)
for c in closest:
if i < 1501:
c += 1501
Copy link
Contributor

Choose a reason for hiding this comment

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

What is this about?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Its because since points along the optimal frontier compare to a list which does not contain the optimal values, the index from that list needs to have 1501 (the number of optimal points) added to it to get the proper point. When making changes I will go and move this value into a variable and either calculate it on the fly or have a constant somewhere.

import pandas as pd


def csv_to_latex(file_name):
Copy link
Contributor

Choose a reason for hiding this comment

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

pandas has a .to_latex method in DataFrame; is there a reason not to use that?
https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_latex.html

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, I didn't know about that function. I will take a look and see if I am able to use it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Looking at this now I think that since it already exists and is pre-formatted for the paper the existing function works better, since it has the horizontal lines and the actual full table, as opposed to the .to_latex function, which while similar, does not have those things specifically (Also custom column names, but that would not take too long to implement)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the "booktabs" option in to_latex does most of what you want, but yeah, happy to stick with your custom one since it makes exactly what you want :)

…ect questions about

- Added argument and return types
- Added docstrings
- Fixed bugs across various files
- Cleaned up code across various files
- Added arguments to color generation
- Changed how the minimized model files are generated
- Added requirements file
- Added downloading script
  - Work in progress, to add to README
- Various other changes
@shanest
Copy link
Contributor

shanest commented Sep 24, 2025

Thanks, Ash! Going to merge; left a few small comments that we can keep in mind for future iterations, but nothing very major or important at all

@shanest shanest merged commit 56cd59e into main Sep 24, 2025
2 checks passed
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.

2 participants