A web application for visually creating machine learning algorithms via drag-and-drop, with reverse engineering to TensorFlow code.
- Drag-and-drop neural network design using ReactFlow
- Reverse engineer visual models to TensorFlow Python code
- Real-time model training with live progress via WebSocket
- CSV and image dataset upload and preprocessing
- Correlation matrix visualization and target field selection
# Backend
cd tensormap-backend
docker build -t tensormap-backend .
docker run -p 4300:4300 --env-file .env tensormap-backend
# Frontend
cd tensormap-frontend
docker build -t tensormap-frontend .
docker run -p 3300:3300 tensormap-frontendcd tensormap-backend
cp .env.example .env # Configure DB credentials
uv sync
uv run uvicorn app.main:socket_app --reload --port 4300cd tensormap-frontend
cp .env.example .env # Optional: configure API URL
npm install
npm start| Service | Port |
|---|---|
| Frontend | 3300 |
| Backend | 4300 |
To enforce code quality, ensure that you set up GitHub Branch Protection rules for the main branch.
- Go to Settings > Branches.
- Add branch protection rule for
main. - Check "Require status checks to pass before merging".
- Search and select
backend-testsandfrontend-tests.
To run the backend tests locally with SQLite (fallback):
cd tensormap-backend && pytest tests/ -vTo run tests with PostgreSQL:
export DATABASE_URL=postgresql://test:test@localhost:5432/tensormap_test
cd tensormap-backend && pytest tests/ -vTo run frontend tests locally:
cd tensormap-frontend && npx vitesttensormap/
tensormap-backend/ # Python FastAPI server
tensormap-frontend/ # React + Vite SPA
See CONTRIBUTING.md for guidelines.
For questions or queries about this project, please reach out via email.