MCPcopy
hub / github.com/ultralytics/ultralytics / get

Method get

ultralytics/utils/__init__.py:350–352  ·  view source on GitHub ↗

Return the value of the specified key if it exists; otherwise, return the default value.

(self, key, default=None)

Source from the content-addressed store, hash-verified

348 )
349
350 def get(self, key, default=None):
351 """Return the value of the specified key if it exists; otherwise, return the default value."""
352 return getattr(self, key, default)
353
354
355def plt_settings(rcparams=None, backend="Agg"):

Callers 15

__init__.pyFile · 0.80
lossMethod · 0.80
__init__Method · 0.80
get_cpu_infoFunction · 0.80
select_deviceFunction · 0.80
model_infoFunction · 0.80
strip_optimizerFunction · 0.80
plot_imagesFunction · 0.80
plot_tune_resultsFunction · 0.80
__init__.pyFile · 0.80
wrapperFunction · 0.80
is_kaggleFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_labels_and_cropsFunction · 0.64