xhluca / react-pyodide-iris

A simple react app that lets you train a model on the iris dataset and predict on custom input; all using scikit-learn and pyodide

Home Page:https://xhlulu.github.io/react-pyodide-iris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting started with pyodide in React

This repository shows how to classify Iris using scikit-learn directly inside your react app (all happening client-side). It was created using react-pyodide-template.

Image demoing the Iris app

The app will take one minute to load the first time since it is downloading large files through the network.

Quickstart

To get started, simply run the lines below in your terminal:

git clone https://github.com/xhlulu/react-pyodide-iris.git
cd react-pyodide-iris
npm i
npm start

When you are ready, you can serve the production build:

npm i -g serve
serve -s build

Acknowledgement

This project was bootstrapped with Create React App.

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

A simple react app that lets you train a model on the iris dataset and predict on custom input; all using scikit-learn and pyodide

https://xhlulu.github.io/react-pyodide-iris


Languages

Language:JavaScript 55.1%Language:HTML 22.9%Language:CSS 14.0%Language:Python 8.1%