Magic
Experiment with any imaginable function using our Magic Object
Wherever you are, whatever strange function you are building up, Magic Object
allows you to easily develop and interact with💀Innocuous Book experiment.
Let's start🔜
Instantiate Magic Object
before use.
⬇️ Then, enjoy Innocuous Book Magic power✨
Methods📓
get_path
Search the data by filename
from path
, if exist, return the data path.
Arguments | |
filename | String (name of data with extension which you want to download) |
path | String (directory where data put) |
Example:
log
Log metrics then you can choose one as optimal standard.
Do not use log
within a Trainable
class.
Arguments | |
**kwargs | Arguments to log which must have key |
Example:
so u can read the data with that save ur checkpoints no matter what framework api for every single framework log you metrics
torch_get_checkpoint_path
Return the path of checkpoints during each epoch or whenever you want.
Arguments | |
path | String (directory where you wnat to save checkpoints) |
epoch | integer (number of epochs to save the model as checkpoint. An epoch is an iteration over the entire |
Example:
torch_save
Save checkpoint during each epoch.
Arguments | |
checkpoint | Dictionary or OrderDictionary (model, weights or anything to save as checkpoint) |
path | String (directory where you wnat to save checkpoints) |
epoch | Integer (number of epochs to save the model as checkpoint. |
Example:
tensor_save
Save checkpoint whenever you want.
Arguments | |
checkpoint | Sequential object (model to save as checkpoint) |
path | String (directory where you wnat to save checkpoints) |
Example:
callback
Save checkpoint with the opportunity by on
during each epoch and s
Arguments | |
metrics | Metrics in dictionary to be evaluated by the model during training and testing. Each can be a string (name of a built-in function), function or a |
path | String (directory where you wnat to save checkpoints) |
frequency | Integer or List (if an integer |
on | Integer or List (when to trigger checkpoint creations. must be one of the Keras event hooks (less the |
filename | String (name of checkpoint you want to save) |
Example:
Last updated