Welcome to the Neural Network API! This API allows you to train and predict with a basic neural network using a simple web interface. ๐
To use the Neural Network API, follow these steps:
-
Install the required dependencies by running
pip install -r requirements.txt
in your terminal. Make sure you have Python 3.6 or later installed. -
Start the Flask server by running
python app.py
. The server will be running athttp://localhost:5000
. -
Open your web browser and go to
http://localhost:5000
. You will see the web interface for the Neural Network API.
To train the neural network, follow these steps:
-
Enter the input data and target data in the respective text areas. Each value should be separated by a comma, and each data sample should be on a new line.
-
Specify the number of epochs and learning rate for the training process.
-
Click the Train button. The neural network will be trained with the provided data.
-
Once the training is complete, you will see two charts: the training error chart and the neural network output chart. These charts visualize the training progress and the predicted outputs.
To make predictions with the trained neural network, follow these steps:
-
Enter the input data for which you want to make predictions in the text area. Each value should be separated by a comma, and each data sample should be on a new line.
-
Click the Predict button. The neural network will generate predictions for the provided input data.
-
The predicted outputs will be displayed below the Predict button.
To help you get started, here are some example input and target data:
Input data:
0.1, 0.1, 0.3
0.1, 0.5, 0.2
0.3, 0.8, 0.9
Target data;
0.4, 0.8
0.6, 0.4
0.1, 0.2
Feel free to modify the input and target data to experiment with different training scenarios.
Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request.
This project is licensed under the MIT License.