/usr/local/lib/python3.6/site-packages/tqdm/__pycache__
NameSizeModeActions
asyncio.cpython-36.pyc32690644editdlrm
auto.cpython-36.pyc12000644editdlrm
autonotebook.cpython-36.pyc9700644editdlrm
cli.cpython-36.pyc91040644editdlrm
dask.cpython-36.pyc20920644editdlrm
gui.cpython-36.pyc46690644editdlrm
keras.cpython-36.pyc49040644editdlrm
notebook.cpython-36.pyc74930644editdlrm
rich.cpython-36.pyc51970644editdlrm
std.cpython-36.pyc457930644editdlrm
tk.cpython-36.pyc62560644editdlrm
utils.cpython-36.pyc117340644editdlrm
version.cpython-36.pyc4760644editdlrm
_dist_ver.cpython-36.pyc1610644editdlrm
_main.cpython-36.pyc4100644editdlrm
_monitor.cpython-36.pyc27900644editdlrm
_tqdm.cpython-36.pyc4050644editdlrm
_tqdm_gui.cpython-36.pyc4180644editdlrm
_tqdm_notebook.cpython-36.pyc4380644editdlrm
_tqdm_pandas.cpython-36.pyc9070644editdlrm
_utils.cpython-36.pyc8660644editdlrm
__init__.cpython-36.pyc15920644editdlrm
__main__.cpython-36.pyc1780644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/tqdm/__pycache__/keras.cpython-36.pyc (4904B)
3 Eg9@sddlmZmZddlmZddlmZddlmZy ddl Z WnPe e fk rZ z0yddl m Z Wne k r~e YnXWYddZ [ XnXdd giZd gZGd d d e jjZdS) )absolute_importdivision)copy)partial)tqdmN)kerasz github.com/Z casperdcl TqdmCallbackc@s~eZdZdZedddfddZddddefdd Zd d Zd d Z ddZ ddZ eddZ eddZ eddZdS)r z,Keras callback for epoch and batch progress.NcCsdS)Nr)logsr r 4/usr/local/lib/python3.6/site-packages/tqdm/keras.pyszTqdmCallback.csdfdd }|S)NcsF}r8r*tfddDjddj|dS)Ncsg|]}j|dqS)r)pop).0i)r r r sz?TqdmCallback.bar2callback..callback..F)Zrefresh)rZ set_postfixupdate)_r n)bardeltar)r r callbacksz+TqdmCallback.bar2callback..callback)Nr )rrrrr )rrrr bar2callbacks zTqdmCallback.bar2callbackrcKs|rt|f|}||_||dd|_|j|j|_|rR|rR||d||_}n d|_}||_|dkr||ddd|_|j|jddgd d d |_dS) a^ Parameters ---------- epochs : int, optional data_size : int, optional Number of training pairs. batch_size : int, optional Number of training pairs per batch. verbose : int 0: epoch, 1: batch (transient), 2: batch. [default: 1]. Will be set to `0` unless both `data_size` and `batch_size` are given. tqdm_class : optional `tqdm` class to use for bars [default: `tqdm.auto.tqdm`]. tqdm_kwargs : optional Any other arguments used for all bars. epoch)totalunitrNbatchF)rrleavesizecSs |jddS)Nrr)get)r r r r r Csz'TqdmCallback.__init__..)rr) r tqdm_class epoch_barrZ on_epoch_endbatchesverbose batch_bar on_batch_end)selfepochsZ data_size batch_sizer#r Z tqdm_kwargsr"r r r __init__"s   zTqdmCallback.__init__cOs>|jj}|d|dd}|dk r:||jjkr:|jj|ddS)Nr'Znb_epoch)r)paramsrr!rreset)r&r__r*Z auto_totalr r r on_train_beginEszTqdmCallback.on_train_begincOs|jj|kr$|j}||_|_|_|jr|jj}|d|d|ddpL|j}|jdkrt|drl|j j |j |ddd|d dpdd |_ |j |j dd gd d d|_ n8|jdkrd|d dpd|j _|j j|dntddS)NZsamplesZ nb_sampleZstepsr$rTrr()rrr unit_scalercSs |jddS)Nrr)r)r r r r r [sz-TqdmCallback.on_epoch_begin..)rr)rzUnknown verbosity)r!rZ last_print_ninitialr#r*rr"hasattrr$closer rr%r/r+KeyError)r&rrr,Zebarr*rr r r on_epoch_beginKs(      zTqdmCallback.on_epoch_begincOs|jr|jj|jjdS)N)r#r$r2r!)r&rr,r r r on_train_endbs zTqdmCallback.on_train_endcCsPt|jdd}|dkrdSddlm}||t|dd}|dk rL||jdS)z*Displays in the current cell in Notebooks. containerNr)displayr$)getattrr!Znotebookr7r6)r&r6r7r$r r r r7gs  zTqdmCallback.displaycCsdS)NTr r r r r _implements_train_batch_hooksrsz*TqdmCallback._implements_train_batch_hookscCsdS)NTr r r r r _implements_test_batch_hooksvsz)TqdmCallback._implements_test_batch_hookscCsdS)NTr r r r r _implements_predict_batch_hookszsz,TqdmCallback._implements_predict_batch_hooks)__name__ __module__ __qualname____doc__ staticmethodr tqdm_autor)r-r4r5r7r9r:r;r r r r r s  "  ) __future__rrr functoolsrautorrAr ImportErrorAttributeErroreZ tensorflow __author____all__ callbacksZCallbackr r r r r s