From b36512ea2e7e6d2ec36a3241c1bf751e4e074fe1 Mon Sep 17 00:00:00 2001
From: vinjn <vinjn.z@gmail.com>
Date: Sat, 26 May 2018 13:42:53 +0000
Subject: [PATCH] classifier.c - add the awesome training chart and make sure "top" is not bigger than "classes" in datacfg file.

---
 src/tree.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/tree.h b/src/tree.h
index c3f4979..6983adf 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -5,6 +5,7 @@
     int *leaf;
     int n;
     int *parent;
+	int *child;
     int *group;
     char **name;
 
@@ -14,6 +15,7 @@
 } 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);

--
Gitblit v1.10.0