#include <stdio.h>
#include <stdlib.h>
#include "tree.h"
#include "utils.h"
#include "data.h"
Go to the source code of this file.
|
void | change_leaves (tree *t, char *leaf_list) |
|
float | get_hierarchy_probability (float *x, tree *hier, int c, int stride) |
|
void | hierarchy_predictions (float *predictions, int n, tree *hier, int only_leaves, int stride) |
|
int | hierarchy_top_prediction (float *predictions, tree *hier, float thresh, int stride) |
|
tree * | read_tree (char *filename) |
|
◆ change_leaves()
void change_leaves |
( |
tree * |
t, |
|
|
char * |
leaf_list |
|
) |
| |
Definition at line 7 of file tree.c.
◆ get_hierarchy_probability()
float get_hierarchy_probability |
( |
float * |
x, |
|
|
tree * |
hier, |
|
|
int |
c, |
|
|
int |
stride |
|
) |
| |
◆ hierarchy_predictions()
void hierarchy_predictions |
( |
float * |
predictions, |
|
|
int |
n, |
|
|
tree * |
hier, |
|
|
int |
only_leaves, |
|
|
int |
stride |
|
) |
| |
◆ hierarchy_top_prediction()
int hierarchy_top_prediction |
( |
float * |
predictions, |
|
|
tree * |
hier, |
|
|
float |
thresh, |
|
|
int |
stride |
|
) |
| |
◆ read_tree()
tree* read_tree |
( |
char * |
filename | ) |
|