MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / call_func

Function call_func

machine_learning/sequential_minimum_optimization.py:438–444  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

436
437def count_time(func):
438 def call_func(*args, **kwargs):
439 import time
440
441 start_time = time.time()
442 func(*args, **kwargs)
443 end_time = time.time()
444 print(f"SMO algorithm cost {end_time - start_time} seconds")
445
446 return call_func
447

Callers

nothing calls this directly

Calls 1

funcFunction · 0.85

Tested by

no test coverage detected