Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kevinrobinson/tiny-trainer

experiment with using the universal sentence encoder and KNN to make a classifier from small training sets
https://github.com/kevinrobinson/tiny-trainer

Last synced: 4 months ago
JSON representation

experiment with using the universal sentence encoder and KNN to make a classifier from small training sets

Awesome Lists containing this project

README

        

# tiny-trainer
experiment with using the universal sentence encoder and KNN to make a classifier from small training sets

### Demo
https://tiny-trainer.netlify.com/

![dataset](docs/dataset.png)
![results](docs/results.png)
![t](docs/t.png)
![q](docs/q.png)
![ingredients](docs/ingredients.png)

### Using your models
You can click "Copy!" to get script tags you paste in an HTML page to make predictions in your own app.

![repl](docs/repl.png)

This is an example repl.it you can fork, see [https://repl.it/@kevinrobinson/WeeFancyTriangles](https://repl.it/@kevinrobinson/WeeFancyTriangles)

![own-app](docs/own-app.png)

### References
- https://github.com/tensorflow/tfjs-models/blob/master/universal-sentence-encoder/demo/index.js
- https://github.com/tensorflow/tfjs-models/tree/master/knn-classifier
- https://machinelearningforkids.co.uk

### Development
This is static website, but it uses `node.js` for the build process.

In the project directory, you can run:

```
$ yarn install # install dependencies
$ yarn start # run build in development mode
```

Then open [http://localhost:3000](http://localhost:3000) to view it in the browser.

This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app), so that's a good place to learn more if you are trying to set it up yourself.