Files
INTUIA/Programa final/spacy/cli/__pycache__/debug_model.cpython-312.pyc
T

70 lines
12 KiB
Plaintext
Raw Normal View History

2026-03-15 13:27:50 +00:00
Ë
=û gÓ#ãóŽddlZddlmZddlmZmZmZddlZddlm Z m
Z
m Z m Z m
Z
ddlmZddlmZddlmZdd lmZdd
lmZdd lmZd d
lmZmZmZmZmZmZm Z ejBddddœ¬«edddd¬«edd¬«edddd¬«edddd¬«eddd d!¬«edd"d#d$¬«edd%d&d'¬«edd(d)d*¬«edd+d,d-¬«edd.d/d0¬«edd1d2d3¬«ed4d5d6d7¬«f d8ejDd9ed:e#d;e#d<e$d=e$d>e$d?e$d@e$dAe$dBe$dCe$dDe%fdE„«Z&ddFœdGeee#effdH„Z'dI„Z(dOdJe#fdK„Z)dL„Z*dM„Z+dN„Z,y)PéN)ÚPath)ÚAnyÚDictÚOptional)ÚModelÚdata_validationÚfix_random_seedÚset_dropout_rateÚset_gpu_allocator)Úmsg)ÚExample)Úresolve_dot_namesé)Úutil)ÚConfigSchemaTraining)Úregistryé)ÚArgÚOptÚ debug_cliÚparse_config_overridesÚ setup_gpuÚshow_validation_errorÚstring_to_listÚmodelT)Úallow_extra_argsÚignore_unknown_options)Úcontext_settings.zPath to config file)ÚhelpÚexistsÚ
allow_dashzDName of the pipeline component of which the model should be analysed)rÚz--layersz-lz+Comma-separated names of layer IDs to printFz --dimensionsz-DIMzShow dimensionsz --parametersz-PARzShow parametersz --gradientsz-GRADzShow gradientsz --attributesz-ATTRzShow attributesz
--print-step0z-P0zPrint model before trainingz
--print-step1z-P1z Print model after initializationz
--print-step2z-P2zPrint model after trainingz
--print-step3z-P3zPrint final predictionséÿÿÿÿz--gpu-idz-gzGPU ID or -1 for CPUÚctxÚ config_pathÚ componentÚlayersÚ
dimensionsÚ
parametersÚ gradientsÚ
attributesÚP0ÚP1ÚP2ÚP3Úuse_gpuc
óªt| «t|d¬«}||||||| |
| dœ }
t|j«}t |«5t j ||d¬«}ddd«j«}|dd}| d k\r
|r t|«t |«5t j|«}|jj«}tj|dt¬
«}ddd«d }|#tjd |«t!|«j#|«}t%|||||
¬
«y#1swYŒàxYw#1swYŒaxYw)
Analyze a Thinc model implementation. Includes checks for internal structure
and activations during training.
DOCS: https://spacy.io/api/cli#debug-model
T)Úintify) r(r)r*r+r'Úprint_before_trainingÚprint_after_initÚprint_after_trainingÚprint_predictionF)Ú overridesÚ interpolateNÚtrainingÚ
gpu_allocatorr)ÚschemaÚseedzFixing random seed: ©Úprint_settings)rrrÚargsrrÚ load_configr8r Úload_model_from_configÚconfigrÚresolverr Úinfor Úget_pipeÚ debug_model)r$r%r&r'r(r)r*r+r,r-r.r/r0r>Úconfig_overridesÚ
raw_configrBÚ allocatorÚnlpÚTr<Úpipes úVC:\Users\garci\AppData\Roaming\Python\Python312\site-packages\spacy/cli/debug_model.pyÚdebug_model_clirN sDô6ˆÜ
˜F¨4Ô
0€Fà Ø ØØ ØØ!#ØØ "Øñ
€Nô.¨c¯h©hÓÜ ˜{Õ +Ü× Ð#3Àô
ˆ
÷
×
%€FØ" 3€IØ!|™ ܘ)Ô˜{Õ +Ü×)¨*Ó5ˆØ×)ˆÜ × Ñ ˜V /Ô8LÔ ÷

ˆV‰9€DØ ÐÜ Ð vÐ˜ÔØ <‰<˜ Ó "€D䘘3 °^ÖD÷%
,Ð +ú÷
,Ð +úsÁD=ÂAE Ä=EÅ Er=r>c
ó¨
t|d«stjd|dd¬«|j}t |t
«s$tjdt
|«dd¬«|i}tjd|j«|jd «r!tjd
«t||«td «5 |d g}t«5t||«\Š
jˆˆ
fd
«ddd«tjd«t!t#j$
«d««Š ddd«|jd«r!tjd«t||«t3|d«d}|j5d«r.d|j7d«j8vrj;d«}|j5d«r.d|j7d«j8vrj;d«}t=d«D]&} |r|j? «|j? «Œ(|jd«r!tjd«t||«|jA D
cgc]}
|
jBŒc}
«} |jd«r3tjd «tjtE| ««tjFd!«y#1swYŒóxYw#t&$r´ t)d|¬«t«5t+«Dcgc]}t-j.|i«Œncc}wc}Š jˆ fd«ddd«n #1swYnxYwtjd«n&#t0$rtjdd¬«YnwxYwYŒxwxYw#1swYŒ~xYwcc}
w)"NrzThe component 'z0' does not specify an object that holds a Model.r)Úexitsz1Requires a Thinc Model to be analysed, but found z instead.zAnalysing model with ID r3zSTEP 0 - before trainingFÚ train_corpuscó«S©)rJrQs€€rMú<lambda>zdebug_model.<locals>.<lambda>€s
ø€¡|°CÔ'8óz/Initialized the model with the training corpus.éé)ÚnOrcóSrSrT)Úexampless€rMrUzdebug_model.<locals>.<lambda>ˆsø€©8rVz&Initialized the model with dummy data.zjCould not initialize the model: you'll have to provide a valid 'train_corpus' argument in the config file.r4zSTEP 1 - after initializationgš™™™™™É?Útok2vecztok2vec-listenerztransformer-listenerÚ transformerér5zSTEP 2 - after trainingr6zSTEP 3 - predictionz.Succesfully ended analysis - model looks good.)$Úhasattrr ÚfailrÚ
isinstancerÚtyperDÚidÚgetÚdividerÚ _print_modelrrrÚ
initializeÚlistÚ itertoolsÚisliceÚ
ValueErrorÚ_set_output_dimÚ _get_docsr
Ú from_dictÚ Exceptionr
Úhas_refÚget_refÚnamerEÚrangeÚupdateÚpredictÚ predictedÚstrÚgood)rBÚresolved_train_configrJrLr>rÚ dot_namesÚupstream_componentÚexÚ
predictionr[rQs ` @@rMrFrF^sú€ô Ô  ؘd˜VÐ#SÐ õ
ð
J‰J€EÜ eœUÔ  ØÀUÃ ¸}ÈIÐ õ
ðÐØˆô‡H¯© 
×ÑÐ ÐU˜NÔ
˜Õ ð Ø.¨~Ñ?ˆ(Ü"3°F¸IÓ"FØÔ