[math] Adding sigmoid and softmax functions
This commit is contained in:
14
src/logistic.h
Normal file
14
src/logistic.h
Normal file
@@ -0,0 +1,14 @@
|
||||
#ifndef LOGISTIC_H
|
||||
#define LOGISTIC_H
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "matrix.h"
|
||||
|
||||
double sigmoid(double x);
|
||||
void sigmoid_vector(double *x, size_t n);
|
||||
void softmax_vector(double *x, size_t n);
|
||||
void softmax_matrix(matrix_t *matrix);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user