https://github.com/andimiller/probabilistic-playground-web
Teaching tool for explaining TopK Theta Sketches and TopK Tuple Sketches
https://github.com/andimiller/probabilistic-playground-web
big-data probabilistic-data-structures theta-sketch
Last synced: 3 months ago
JSON representation
Teaching tool for explaining TopK Theta Sketches and TopK Tuple Sketches
- Host: GitHub
- URL: https://github.com/andimiller/probabilistic-playground-web
- Owner: andimiller
- License: mit
- Created: 2022-08-28T21:49:57.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-04T00:35:50.000Z (about 2 years ago)
- Last Synced: 2025-01-18T20:59:04.245Z (4 months ago)
- Topics: big-data, probabilistic-data-structures, theta-sketch
- Language: Scala
- Homepage: https://andimiller.net/theta/
- Size: 61.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Probabilistic Playground
## Purpose
This is an interactive browser-based tool for teaching people about TopK Theta Sketches by allowing them to feed data in and see how they work.
## License
This is licensed under the MIT license
## Setup instructions
To run the program in a browser you will need to have yarn (or npm) installed.
Before your first run and for your tests to work, **you must** install the node dependencies with:
```sh
yarn install
```This example uses Parcel.js as our bundler and dev server, there are lots of other options you might prefer like Webpack, scalajs-bunder, or even just vanilla JavaScript.
We recommend you have two terminal tabs open in the directory containing this README file.
In the first, we'll run sbt.
```sh
sbt
```From now on, we can recompile the app with `fastOptJS` or `fullOptJS` _**but please note** that the `tyrianapp.js` file in the root is expecting the output from `fastOptJS`_.
Run `fastOptJS` now to get an initial build in place.
Then start your dev server, with:
```sh
yarn start
```Now navigate to [http://localhost:1234/](http://localhost:1234/) to see your site running.
If you leave parcel's dev server running, all you have to do is another `fastOptJS` or `fullOptJS` and your app running in the browser should hot-reload the new code.