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
| def get_event_files(main_path) -> list: | |
| """Return a list of event files under the given directory""" | |
| all_files = [] | |
| for root, _, filenames in os.walk(main_path): | |
| for filename in filenames: | |
| if "events.out.tfevents" in filename: | |
| all_files.append(str(Path(root) / Path(filename))) | |
| return all_files |
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
| """ | |
| Run result aggregator | |
| - Read all tensorbord logs and save as a pandas dataframe for analysis | |
| """ | |
| import os | |
| import pandas as pd | |
| from tensorboard.backend.event_processing.event_accumulator import EventAccumulator | |
| from tqdm import tqdm | |
| from pathlib import Path |
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
| import os | |
| import pandas as pd | |
| from tensorboard.backend.event_processing.event_accumulator import EventAccumulator | |
| from tqdm import tqdm | |
| from pathlib import Path | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| import clipboard | |
| import base64 | |
| from io import BytesIO |
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
| import clipboard | |
| import os | |
| from pathlib import Path | |
| import re | |
| def apply_transforms(txt, list_of_trans): | |
| for trans in list_of_trans: | |
| txt = trans(txt) | |
| return txt |
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
| import os | |
| from glob import glob | |
| from pathlib import Path | |
| import re | |
| #%% | |
| main_dir = Path("./docs/") # Change this to where your Obsidian Vault notes are | |
| # %% | |
| files = glob(str(main_dir) + "/**/*.md", recursive=True) # This looks at all markdown files | |
| files.sort() |
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
| pdfannots <filename> | |
| # eg : pdfannots /Users/eragon/Documents/paper.pdf |
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
| pip install pdfannots |
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
| \bibliographystyle{IEEEtran} | |
| \bibliography{references} | |
| \end{document} |
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
| \section{Citation Example} | |
| Two interesting libraries are Kornia \cite{riba2020kornia} and fast.ai \cite{howard2020fastai}. If you want it inline then : \citep{howard2020fastai}. |
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
| %\newpage %add this if you want it to be on a separate page | |
| \begin{appendix} | |
| \listoffigures | |
| \listoftables | |
| \end{appendix} |