From c123f320fcc2212f1d3b59a4d3d2ae6be71cf1e6 Mon Sep 17 00:00:00 2001
From: AlexeyAB <alexeyab84@gmail.com>
Date: Sun, 04 Mar 2018 20:41:23 +0000
Subject: [PATCH] Show avg-loss chart during Training, if compiled with OpenCV. Use -dont_show to disable.

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

diff --git a/src/tree.h b/src/tree.h
index c713866..c3f4979 100644
--- a/src/tree.h
+++ b/src/tree.h
@@ -5,12 +5,17 @@
     int *leaf;
     int n;
     int *parent;
+    int *group;
     char **name;
 
     int groups;
     int *group_size;
+    int *group_offset;
 } tree;
 
 tree *read_tree(char *filename);
+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