Skip to content

Latest commit

ย 

History

History
290 lines (220 loc) ยท 10.9 KB

changelog.md

File metadata and controls

290 lines (220 loc) ยท 10.9 KB

Changelog

0.550

0.549

๐Ÿ› bug fix in choose ๐ŸŽ‰ Any method with __show__ will act as a shortcut for the show function

0.548

โœจ current_file_dir is a new function that return's the directory where the file exists ๐Ÿ› choose can optionally be silent (useful in funcs like rand) ๐ŸŽ‰ ll method in P ๐Ÿ› tryy will Warn instead of print during an exception โœจ track2 can take optional info to display

0.547

๐Ÿ› fixed a bug where timer was asserting N > 0 instead of N>=0

0.546

โœจ printfile will act like cat for linux โœจ choose will let you know what was chosen โœจ Timer can accept N=None and it will simply time the current activities without any estimate โœจ tryy is pickleable (helps with multiprocessing)

0.546

๐ŸŽ‰ Add profiler

0.545

๐ŸŽ‰ environment variable AD_SHOW_FULL_STRINGS can be set to non-empty to show full strings in summary ๐ŸŽ‰ better integration for unknown datatypes in AD.summary

0.544

๐ŸŽ‰ Quality of life improvements in logging ๐ŸŽ‰ Add support for dataclass in AD ๐ŸŽ‰ DeepDiff integrated into AD. Now you can call x.diff(y) where x is AD and y is ADable ๐ŸŽ‰ AD.d (no brackets, d is a property) to convert the object to dictionary โœจ read_json can also do json.loads if input is not a file path โœจ json is loaded by default on import *

0.540

โœจ Made all imports lazy for a faster import experience

0.539

โœจ set AD_SHOW_TAB_STOPS env variable to anything to print with tab-stops (only recommended to see on REPL. Default is good for storing files) โœจ crop_from_bb has padding (px,py,pX,pY) ๐Ÿž minor bugfix in AD ๐ŸŽ‰ AD has a fetch2 which preserves json structure while fetching all the leafs of the same name ๐ŸŽ‰ AD has a flatten which flattens all nested jsons into flat dictionary with '.' combined key names ๐ŸŽ‰ AD has a flatten_and_make_dataframe which creates one column for each nesting โœจ tryy will store all its errors and can be accessed by calling <func>.error_summary() ๐ŸŽ‰ torch snippets as a new cli function called ts, thanks to the wonderful Typer. Try ts time ts zen-of python ts zen-of c++ ts --help

0.538.1

โœจ slightly better error printing in tryy

0.538

๐ŸŽ‰ tryy a new decorator to wrap try except with optional default return as well as print stack trace if need be โœจ Timer can given time-remaning approximation based on both instantaneous or average speed โœจ logging_mode functions can be used as both context managers and decorators โœจ better formatting for now() โœจ show auto generates a title if possible โœจ show function includes a framecount parameter to specify which frame of the stack it should search for the title. See its usage in show_big_dataframe โœจ yolo_2_df and df_2_yolo functions in adapters

0.537

โœจ AD let's you know if a collection is list, set or tuple โœจ NEW DEFAULT: use info column to show text else text ๐Ÿž fix a bug where P misbehaves in AD when it doesn't exist ๐Ÿž fix a bug in show tables ๐Ÿž logger_mode context will gracefully exit โœจ to is compatible with transformers.BatchFeature โฎ๏ธ Revert back P as the code is incompatible with py312

0.536

๐Ÿ†• parseing a .ini file will add a META key by default which has file and name information. This header can be used in the file variables without creating META to begin with ๐Ÿ†• parse will merge a base config if a META.base key is found. Works recursively on base files (base of base etc...) ๐Ÿ†• P can tab complete existing file path name and access that file as an attribute ๐Ÿ’ก Did you know parse can perform arithmetic? โœจ registry and parse are imported by default โœจ jitter can work on pd.DataFrame directly ๐Ÿ”จ bbs2df clips negative coordinates โœจ Using ๐Ÿท๏ธ to denote data-type in AD ๐Ÿž AD2 is AD now ๐Ÿž AD preserves dict order during serialization โœจ warn_on_fail decorator gives you a free try catch โœจ showing a dataframe of the correct format inside and outside jupyter environments ๐Ÿž AD has improved get, update, map and new write_config, trymap and __json__ โœจ P has two new properties .sz for size of file and .tree to print the tree

0.535

๐Ÿž AD hotfix

0.534

๐ŸŽ‰ store_scrap is a new way to store on disk and show jupyter cell outputs in other notebooks.
Best for presenting complex analyses without worrying about running time-consuming notebooks ๐ŸŽ‰ Add support for P in AD summary and write_json ๐ŸŽ‰ __json__ supports custom objects' serializability ๐ŸŽ‰ write_json is compatible with above feature ๐ŸŽ‰ AD_MAX_ITEMS if given as -1 will change it to 1000 ๐Ÿž iou will parse input dataframes more gracefully ๐Ÿž AD minor bug fix ๐ŸŽ‰ tree has a better default ๐ŸŽ‰ New functions folder_structure_to_dict and folder_structure_to_json in paths ๐ŸŽ‰ Add jitter (int) argument to show so that bounding boxes can be a bit jittered ๐ŸŽ‰ Add support for changing spinner in notify_waiting ๐ŸŽ‰ dumpdill can print a custom message (see store_scrap in paths.py)

0.531

๐ŸŽ‰ AD __contains__ can do a nested in 'x.y.z' in AD(x={'y': {'z': 10}}) == True

0.530

โ˜ ๏ธ Stop using rich's print and revert back to builtin print ๐Ÿž Decouple AD and torch ๐ŸŽ‰ Add a new chart - spider / radar ๐ŸŽ‰ Add scp client with download upload functionality

0.529

๐Ÿงน change code to remove future warnings in text_utils

0.528

๐Ÿž AD string summary was buggy

0.524

๐Ÿž all write modes are 'a' by default to avoid accidental overwriting ๐Ÿงน AD writes better string summary (support for multiline)

0.523

๐Ÿงน print_module_ios_for has better targeted functionality where you need to give submodules name ๐ŸŽ‰ clean_gpu_mem and get_latest_checkpoint functions in torch_loader ๐Ÿงน minor bugfix in AD

0.522

๐Ÿž minor bugfix in AD2 where data keyword misbehaves ๐Ÿงน video has better size functionality ๐ŸŽ‰ if all is given in print_ios_for_module, all modules are printed ๐ŸŽ‰ AD2.dict is an alias for AD2.to_dict ๐ŸŽ‰ better AD2.summary for pandas dataframes and AD2.summary respects max_items for keys as well ๐ŸŽ‰ new alias pd.read_pqt for pd.read_parquet ๐Ÿž wrap tree into python

0.521

๐Ÿž read loads color image by default ๐Ÿงน video utils are present in torch_snippets.video

0.520

๐Ÿงน Back to min python version 3.7

0.519

๐ŸŽ‰ print_folder_summary

0.518

๐Ÿงน import AD from markup2 by default ๐ŸŽ‰ pandas dataframe summary in AD.summary

0.517

๐Ÿž print_shapes_hook will gracefully fail

0.516

๐Ÿž attach will add hook to the input module as well (not just the children)

0.514

๐Ÿž minor change in print_shapes_hook

0.513

๐ŸŽ‰ print_module_io_for automates attaching and detaching hooks ๐ŸŽ‰ AD2 avoids rich printing

0.512

๐Ÿž attach_hooks will accept any custom hook

0.511

๐ŸŽ‰ Make markup2.AD.__repr__ the summary ๐ŸŽ‰ Expose markup2.AD as AD2 ๐ŸŽ‰ Make icecream a requirement ๐ŸŽ‰ Min python is 3.8

0.510

๐ŸŽ‰ New IO hooks system in torch_snippets.trainer.hooks ๐ŸŽ‰ Updated markup2.AD.summary and add print_summary methods

0.509

๐ŸŽ‰ Experimental AD in torch_snippets.markup2 that infers variable names E.g. - (p=10; AD(p) == {'p': 10}) ๐Ÿž isin will not add +1 (useful for both absolute and relative boxes now) ๐Ÿž write_json will support numpy, torch and AttrDict

0.508

๐ŸŽ‰ add find_address to AttrDict that can return all path locations for a specific key ๐ŸŽ‰ add summary to AttrDict that can give an outline of the dictionary ๐ŸŽ‰ add write_summary to AttrDict that writes the summary to a textfile ๐ŸŽ‰ show can now show bb colors {"r": (255, 0, 0), "g": (0, 255, 0), "b": (0, 0, 255), "y": (255, 0, 255)} if df has column called color ๐ŸŽ‰ AD is an alias for AttrDict ๐ŸŽ‰ AD can directly consume kwargs

0.507

๐Ÿงน import only important functins from dates.py ๐ŸŽ‰ add backup_all_notebooks that backs up every notebook present in a specific folder ๐ŸŽ‰ reset_logger can disable stdout logging if needed, using disable_stdout=True kwarg (False by default) common_items will take a list of folders and return common stems from the folders images will show a black border when grid is True

0.506

Info, Debug, Warn and Excep will format ouputs separated by a ; when args are passed notify_waiting is a new function that letting you know some process is running for an unknown amount of time optional delay during shutdown_current_notebook Info, Debug, Warn and Excep will all have X_mode and in_X_mode functions much like in_debug_mode and debug_mode __init__ will auto pull from logger now Better non-linear Timer (and Report and track2)

0.505

๐Ÿงน Info, Debug, Warn and Excep will accept args (instead of a single arg) ๐Ÿงน show will show h4 headers instead of h2 for dataframe titles

0.504

๐Ÿงน phasify loads by default ๐Ÿงน show_big_dataframe can show more rows ๐ŸŽ‰ add a new submodule trainer.hooks ๐Ÿงน show delegated kwargs to plt.imshow for a better readme ๐ŸŽ‰ batchify can batchify multiple containers at once ๐ŸŽ‰ cat_with_padding new function in torch_loader ๐Ÿงน L is json compatible ๐Ÿž BB will not decide if something is relative/absolute ๐ŸŽ‰ __contains__ for config ๐ŸŽ‰ to works on AttrDict ๐Ÿ‘ถ๐Ÿผ track2 is a better version of track uses corouties ๐Ÿ‘ถ๐Ÿผ debug_mode temporarily activates DEBUG mode on ๐Ÿ‘ถ๐Ÿผ if in_debug_mode(): lets you know if DEBUG mode is on ๐Ÿงน reset_logger can accept lowercase levels also ๐Ÿงน dumpdill will return a Path after dumping

0.503

bugfix in loader.show add today function to dates add are_equal_dates to dates add dpi option to pdf

0.502

bugfix in attrdict.map

0.500

All notebooks are formatted with black parse can parse python expressions Add DeepLearningConfig class that can be used to load model hyperparameters Add GenericConfig class that can be used to load generic (such as training, evaluation) hyperparameters Add date utilities patch_to, Timer, timeit, io are loaded by default lovely_tensors is optional Add phasify function to loader

0.499.29

attrdict can deserialize "L"

0.499.28

  • show can render a dataframe with a title
  • show can accept a csv file as input (no need to load it and send)
  • backup_this_notebook will back up as backups/file/file__0000.html instead of backups/file/0000.html for easier sharability
  • module loads decorators by default (io, timeit, check_kwargs_not_none)
  • ishow is less opinionated
  • shutdown_this_notebook is a new function

Todo

override_previous_backup should not trigger when there's no backup to begin with instead of showing markdown objects using display, directly show HTML objects so that the text is preserved on reopen h2 in Backup instead of h1