darknet  v3
Functions
tree.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "tree.h"
#include "utils.h"
#include "data.h"
Include dependency graph for tree.c:

Go to the source code of this file.

Functions

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)
 
treeread_tree (char *filename)
 

Function Documentation

◆ 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 
)

Definition at line 27 of file tree.c.

◆ hierarchy_predictions()

void hierarchy_predictions ( float *  predictions,
int  n,
tree hier,
int  only_leaves,
int  stride 
)

Definition at line 37 of file tree.c.

◆ hierarchy_top_prediction()

int hierarchy_top_prediction ( float *  predictions,
tree hier,
float  thresh,
int  stride 
)

Definition at line 53 of file tree.c.

◆ read_tree()

tree* read_tree ( char *  filename)

Definition at line 83 of file tree.c.