Select Git revision
LoadFileCommand.java
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
plot_test_results.py 727 B
# -*- coding: utf-8 -*-
"""Script to plot results of ANN model testing.
@author: Laura C. Kühle
"""
import sys
from tcd.Plotting import plot_evaluation_results
def main() -> None:
"""Plot results of ANN model tests."""
with open(str(snakemake.log[0]), 'w', encoding='utf-8') as logfile:
sys.stdout = logfile
sys.stderr = logfile
# Plot evaluation results
plot_evaluation_results(evaluation_file=snakemake.input['json_file'],
directory=snakemake.params['directory'],
colors=snakemake.params['colors'])
if __name__ == '__main__':
if "snakemake" in locals():
main()
else:
print('Not Defined.')