Yaecs

Latest version: v6.0.6

Safety actively analyzes 687918 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

4.2.0

- Added an internal step counter to the tracker. Now logging something such as a scalar without specifying the step will log it to that step. To log to no step, explicitly pass step=None or step=-1. The internal step can be incremented using tracker.step(). You can also pass the step to which the internal step needs to be set : tracker.step(50). However, the steps can only grow larger with time.

Old syntax (still works) :
for epoch in epochs:
...
tracker.log_scalar("accuracy", acc, step=epoch)
tracker.log_scalar("r2", acc, step=epoch)
tracker.log_scalar("mse", acc, step=epoch)
...

New syntax (with identical behaviour) :
for epoch in epochs:
...
tracker.log_scalar("accuracy", acc)
tracker.log_scalar("r2", acc)
tracker.log_scalar("mse", acc)
...
tracker.step()

- Added features to track time in the Tracker

Instead of :
data_prep_timer = time.time()
prepare_data()
data_prep_timer = time.time() - data_prep_timer

You can do :
tracker.start_timer("data prep")
prepare_data()
tracker.stop_timer("data prep")

Times that are tracked during a given step are printed and logged to this step automatically when calling tracker.step(). They can also be retrieved using tracker.timer["last"] to log or print them manually. Please refer to the Timer and TimerManager classes for details.

- Added feature to shorten details
- Solved bug where logging level was not properly taken into account in some cases

4.1.0

-> as a consequence, parameter type forcing is no longer a thing

4.0.2

- make_config now also scans the CLI for a config argument and falls back to no config by default
- for all functions that check for a config argument in the CLI, the name of that argument can now be defined by the user (--config by default)
- **sub-configs no longer need a tag**, instead any yaml dict is assumed to be a sub-config by default except if it is type-hinted as a dict
- **dict params now require a dict type hint**, otherwise they are parsed as subconfigs
- experiment configs now no longer require any tag (types for parsing are inferred from the default)
- sub-configs can be type-hinted with !type:config

3.2.4

3.2.3

3.2.2

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.