๐ฆ Module
๐ช Step by step script
To use the script as a module, you only need to import the class PerformanceAssessor()
as so:
from perfassess.class_performance_assessor import PerformanceAssessor
...
You can also, for testing, import testor()
as so:
...
from perfassess.testor import testor
...
You can now launch the class on testor()
for instance:
...
assessor: PerformanceAssessor = PerformanceAssessor(
main=testor,
n_field=1,
value=[0] * 1000
)
assessor.launch_profiling()
assessor.plot(path="output_directory/")
Do not forget to change ๐ output_directory/
as your wish!
๐งช Full test script
from perfassess.class_performance_assessor import PerformanceAssessor
from perfassess.testor import testor
assessor: PerformanceAssessor = PerformanceAssessor(
main=testor,
n_field=1,
value=[0] * 1000
)
assessor.launch_profiling()
assessor.plot(path="output_directory/")