This is a web application built with Go that allows users to perform machine learning tasks, specifically linear regression and deployed with Docker on render. Users can input data points, train the model, and test it with new values.
Make sure you have the following installed on your machine:
- Go (Golang)
- Git
-
Clone the repository:
git clone https://github.com/raaasin/go-ml cd go-ml
-
Build the application:
go build -o main .
-
Run the application:
./main
The application will be accessible at http://localhost:8080.
- Open your web browser and navigate to http://localhost:8080.
- Enter data points in the provided form and click "Train" to train the linear regression model.
- After training the model, scroll down to the "Test the Model" section.
- Enter a value in the input field and click "Test" to see the predicted output.
To run the application using Docker:
-
Build the Docker image:
docker build -t go-ml .
-
Run the Docker container:
docker run -p 8080:8080 go-ml
Access the application at http://localhost:8080.
Contributions are welcome! Feel free to open issues and pull requests.
This project is licensed under the MIT License.