Skip to content
Snippets Groups Projects
Select Git revision
  • cdcfd7555094ec79cc75af600d16cf39a02a0cf4
  • master default protected
  • exec_auto_adjust_trace
  • let_variables
  • v1.4.1
  • v1.4.0
  • v1.3.0
  • v1.2.0
  • v1.1.0
  • v1.0.0
10 results

LoadFileCommand.java

Blame
  • 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.')