minor changes
This commit is contained in:
parent
0e2c972d0f
commit
3349ce7a43
4 changed files with 68 additions and 102 deletions
|
|
@ -1,11 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include "matrix.h"
|
||||
#include "image.h"
|
||||
|
||||
typedef struct {
|
||||
int input_size;
|
||||
//Matrix* input; as local variable given to function
|
||||
|
||||
// hidden layers
|
||||
int hidden_size;
|
||||
|
|
@ -19,7 +17,6 @@ typedef struct {
|
|||
int output_size;
|
||||
Matrix* weights_output;
|
||||
Matrix* bias_output;
|
||||
//Matrix* output; as local variable given to function
|
||||
|
||||
double learning_rate;
|
||||
|
||||
|
|
@ -28,16 +25,16 @@ typedef struct {
|
|||
static const int MAX_BYTES = 100;
|
||||
|
||||
Neural_Network* new_network(int input_size, int hidden_size, int output_size, double learning_rate);
|
||||
//void print_network(Neural_Network* network);
|
||||
|
||||
void randomize_network(Neural_Network* network, int scope);
|
||||
void free_network(Neural_Network* network);
|
||||
|
||||
void save_network(Neural_Network* network);
|
||||
Neural_Network* load_network(char* file);
|
||||
|
||||
void print_network(Neural_Network* network);
|
||||
|
||||
double measure_network_accuracy(Neural_Network* network, Image** images, int amount);
|
||||
Matrix* predict_image(Neural_Network* network, Image* image);
|
||||
Matrix* predict(Neural_Network* network, Matrix* image_data);
|
||||
|
||||
void train_network(Neural_Network* network, Image *image, int label);
|
||||
void batch_train_network(Neural_Network* network, Image** images, int size);
|
||||
|
|
|
|||
Reference in a new issue