gradient-descent-visualizer
v0.1.0
Published
A simple, interactive React component for visualizing Linear Regression and Loss Landscapes.
Maintainers
Readme
Gradient Descent Visualizer
A simple, interactive React component for visualizing Linear Regression and Loss Landscapes.
Features
- Interactive Linear Regression: Drag sliders to adjust slope (m) and intercept (b) and see the line update in real-time.
- Real-time Loss History: Visualize the Mean Squared Error (MSE) change over time as you tweak parameters.
- Lightweight: Minimal dependencies (only React).
Installation
npm install gradient-descent-visualizer
# or
yarn add gradient-descent-visualizerUsage
import LinearRegressionVisualizer from 'gradient-descent-visualizer';
function App() {
return (
<LinearRegressionVisualizer />
);
}Development
- Clone the repository.
- Install dependencies:
npm install - Start the dev server:
npm run dev - Build the library:
npm run build
