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
| # NOTE: This is gross, but it contains the plotting code to build this: | |
| # https://twitter.com/willkurt/status/1351242237963874311 | |
| # ImageMagick does all the gif work: convert *.png -delay 60 -duplicate 20,22 logistic.gif | |
| # This optimization loop is not idea for any other purpose than snapshotting the learning | |
| lr = 0.000005 | |
| init_nll = nll(y_train,X_train,w) | |
| next_nll = 0 | |
| img_ctr = 0 | |
| iters = 10 | |
| while (init_nll - next_nll) > 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
| #!/usr/bin/env python3 | |
| """ | |
| Training Data Harvester | |
| Generates training data by using an LLM to prompt DALL-E 3 to create images | |
| Before running make sure to install the necessary pip packages by running: | |
| `pip install openai requests pydantic` | |
| You will also need to set your OPENAI_API_KEY environmental variable |
OlderNewer