https://github.com/zanderlewis/nf
NeuralFlow: Create sentiment analysis neural networks in C.
https://github.com/zanderlewis/nf
Last synced: about 1 year ago
JSON representation
NeuralFlow: Create sentiment analysis neural networks in C.
- Host: GitHub
- URL: https://github.com/zanderlewis/nf
- Owner: zanderlewis
- License: apache-2.0
- Created: 2024-09-04T19:14:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-04T21:21:11.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T20:59:00.662Z (over 1 year ago)
- Language: C
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# NeuralFlow
NeuralFlow is a simple neural network library written in C. It includes basic functionality for creating, training, and using neural networks.
## Features
- Basic feedforward neural network implementation
- Training with backpropagation
- Simple data loading and prediction
## Usage
To use NeuralFlow in your project, follow these steps:
1. Include the header file in your project:
```c
#include "nf.h"
```
2. Create a neural network instance:
```c
NeuralNetwork *nn = create_nn(input_size, hidden_size, output_size);
```
3. Train the neural network:
```c
train_nn(nn, positive_samples, negative_samples, num_samples);
```
4. Make predictions:
```c
float prediction = predict(nn, input);
```
5. Save and load the neural network:
```c
save_nn(nn, "nn.bin");
NeuralNetwork *loaded_nn = load_nn("nn.bin");
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.