From cdd1cb0e8c4fda3671714bb5ad6ba1825cff16d1 Mon Sep 17 00:00:00 2001
From: Puneet Kohli <punkohl@gmail.com>
Date: Sun, 06 May 2018 21:45:26 +0000
Subject: [PATCH] Change matplotlib backend to 'agg' when 'show_plot' is false. This allows the script to be run from command line without any errors (for ex, on a remote machine)
---
src/tree.h | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/tree.h b/src/tree.h
index c713866..6983adf 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -5,12 +5,19 @@
int *leaf;
int n;
int *parent;
+ int *child;
+ int *group;
char **name;
int groups;
int *group_size;
+ int *group_offset;
} tree;
tree *read_tree(char *filename);
+int hierarchy_top_prediction(float *predictions, tree *hier, float thresh, int stride);
+void hierarchy_predictions(float *predictions, int n, tree *hier, int only_leaves);
+void change_leaves(tree *t, char *leaf_list);
+float get_hierarchy_probability(float *x, tree *hier, int c);
#endif
--
Gitblit v1.10.0