0.0.21 • Published 3 months ago

midsommer v0.0.21

Weekly downloads
-
License
-
Repository
-
Last release
3 months ago

Midsommer

A bare-bones implmentation of the self-organizing map algorithm—and a way to visualize it.

How to use it.

If you're working in just a JavaScript environment, this should work just fine.

import { SOM } from "midsommer";

const config = {
	// see config options below.
}

const som = new SOM(config);
som.train(data);

For an example of its usage in a Svelte context, pleas see /src/routes/+page.svelte.

The example.

Run npm run dev -- --open to see the example application, which shows a self-organizing map of senators in the 117th congress. The vectors are descriptions of their votes.

The data for the example is drawn from Voteview data for the Senate during the 117th Congress.

Lewis, Jeffrey B., Keith Poole, Howard Rosenthal, Adam Boche, Aaron Rudkin, and Luke Sonnet (2023). Voteview: Congressional Roll-Call Votes Database. https://voteview.com/

0.0.21

3 months ago

0.0.20

4 months ago

0.0.16

4 months ago

0.0.17

4 months ago

0.0.19

4 months ago

0.0.13

5 months ago

0.0.14

5 months ago

0.0.15

5 months ago

0.0.11

5 months ago

0.0.12

5 months ago

0.0.10

5 months ago

0.0.9

5 months ago

0.0.8

5 months ago

0.0.7

5 months ago

0.0.6

5 months ago

0.0.5

5 months ago

0.0.4

5 months ago

0.0.3

5 months ago

0.0.2

5 months ago

0.0.1

5 months ago