Files
INTUIA/Programa final/spacy/training/__pycache__/loggers.cpython-312.pyc
T

75 lines
9.2 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
?û gSã
óŽddlZddlmZddlmZmZmZmZmZm Z m
Z
m Z m Z ddl
Z
ddlZddlmZddlmZddlmZddlmZerdd lmZd
d œd e ed
e edede e ee ee effdZej6d« ddedede
e eeffd«Zej6d« dde
edede
e eeffd«Zy)éN)ÚPath) ÚIOÚ
TYPE_CHECKINGÚAnyÚCallableÚDictÚListÚOptionalÚTupleÚUnion)ÚPrinteré)Úutil)ÚErrors)Úregistry)ÚLanguageé
)Ú max_widthÚcolsÚwidthsrÚreturncóg}g}t||«D]a\}}t|«|kDr |d|dz
dz}|j|j««|jt t|«|««Œc|||Dcgc]}dŒc}fScc}w)z...Úr)ÚzipÚlenÚappendÚupperÚmax)rrrÚ
final_colsÚ final_widthsÚcolÚwidthÚ_s úWC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/training/loggers.pyÚ setup_tabler&sð€JØ€Lܘ$ Ö'‰
ˆˆUÜ ˆs‹8 Ø A™
ÐÑ.ˆCØ×ј#Ÿ)™)›+Ô×ÑœC¤ ¨%Ó
|±<Ó%@±<¨a¢c°<Ñ%@Ð @ùÒ%@sÁ; Bzspacy.ConsoleLogger.v2Ú progress_barÚconsole_outputÚ output_filecó*t|durdnd||¬«S)a‡The ConsoleLogger.v2 prints out training logs in the console and/or saves them to a jsonl file.
progress_bar (bool): Whether the logger should print a progress bar tracking the steps till the next evaluation pass.
console_output (bool): Whether the logger should print the logs on the console.
output_file (Optional[Union[str, Path]]): The file to save the training logs to.
FNÚeval©r'r(r))Úconsole_logger_v3r,s r%Úconsole_loggerr. s#ô Ø)¨UÑ2‘T¸Øô ðózspacy.ConsoleLogger.v3có´dŠrctj«Šj«rdŠjdj«sjdj d¬«t
j t
jfdddtdtd ttttttfgd
ftgd
fffˆˆˆˆfd
}|S) axThe ConsoleLogger.v3 prints out training logs in the console and/or saves them to a jsonl file.
progress_bar (Optional[str]): Type of progress bar to show in the console. Allowed values:
train - Tracks the number of steps from the beginning of training until the full training run is complete (training.max_steps is reached).
eval - Tracks the number of steps between the previous and next evaluation (training.eval_frequency is reached).
console_output (bool): Whether the logger should print the logs on the console.
output_file (Optional[Union[str, Path]]): The file to save the training logs to.
FTr)ÚparentsÚnlprÚstdoutÚstderrrNcóVˆfdŠtd¬«ŠdŠrjdd««dŠn*‰r(jd««tdd¬ «Š|jDcgc]\}}t |d
«r|j r|Œ!c}}Š|jd d Š|jd d
Š|jd d}|j«Dcgc]
\}}|Œ |Œ c}}ŠDcgc]}d|Œ } }rdŠtddg| zzdgzddg| D
cgc]}
dŒc}
zD
cgc]}
dŒc}
zdgz¬«\} ŠŠj| ¬««jD cgc]} d| zŒ c} ¬««dŠd}
.‰|
vr*ttjj|
¬««dtt t"t$fddfˆˆˆˆˆˆˆˆˆˆˆˆˆˆfd }d!ˆfd „ }||fScc}}wcc}}wcc}wcc}
wcc}
wcc} w)"Ncó t|d¬«S)NT)ÚfileÚflush)Úprint)Útextr3s €r%ú<lambda>z:console_logger_v3.<locals>.setup_printer.<locals>.<lambda>Jsø€œU 4¨f¸Ar/T)Úno_printz Saving logs is disabled because z already exists.zSaving results to Úwzutf-8)ÚencodingÚ is_trainableÚtrainingÚ max_stepsÚeval_frequencyÚ
score_weightszLoss rÚScoreréé)rr)rÚspacingú-)rI)Útrainr+)Ú
unexpectedÚexpectedÚinforc ó|jd«yg}i}D]E}|jdjt|d|«««t|d|«||<ŒGg}i}D][}|dj |d«} t|«}|dk7r|dz}|jdj|««||t|«<Œ]|d |d
g|z|zdjt|d ««gz} ‰rA|d |d
||t|d «d œ}
jtj|
«d
z«j«rnj| ‰¬««rP‰dk(r} d|d } |d
}
n} d|d dz} d}
t!j | dd|
¬«Šj#| «yyy#t
$r7t jj|t|«¬«}t|«dwxYw)z{0:.2f}ÚlossesÚ other_scoresg)ÚnameÚ
score_typeÚspeedédÚepochÚstepÚscore)rWrXrQÚscoresrYú
)rÚalignsrIrKzLast Eval Epoch: zEpoch rF)ÚtotalÚdisableÚleaver7Úinitial)ÚupdaterÚformatÚfloatÚgetÚ TypeErrorrÚE916ÚtypeÚ
ValueErrorÚstrÚwriteÚsrslyÚ
json_dumpsÚcloseÚrowÚtqdmÚset_description)rNrQÚ
log_lossesÚ pipe_namerZÚ
log_scoresr"rYÚerrÚdataÚlog_datar]Údescr`r(rBÚ logged_pipesrAÚmsgÚ
output_streamÚprogressr'Ú
score_colsrIr4Ú table_alignsÚ table_widthsrjs €€€€€€€€€€€€€€r%Úlog_stepz:console_logger_v3.<locals>.setup_printer.<locals>.log_stepwsiø€ðˆÐ—OO àˆˆ) Ø
˜i×.¬u°T¸(±^ÀIÑ5NÓ/OÓQÜ(-¨d°8©n¸YÑ.GÓ(H
˜9ÒˆF؈JÛ!ؘ^ѰcÓ:ð! %L˜'˜SL
˜i×.¨uÓ6Ø',
œ3˜sg  V¡ Ðñàñð×#¤E¨$¨w©-Ó$8Ó
ñð" '™]Ø  ™LØ" ¡=Ó ð×#¤E×$4Ñ$4°XÓ$>ÀÑ$EÔÐÔ ÙÙØ—G‘GØ \¸,ÐPWðóôñ