Skip to content

Commit

Permalink
Use readme as docs index
Browse files Browse the repository at this point in the history
  • Loading branch information
nanxstats committed Oct 19, 2024
1 parent de24228 commit 2fa73a2
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
23 changes: 21 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,25 @@
# tinytopics
# tinytopics <img src="assets/logo.png" align="right" width="120" />

Fit topic models using neural Poisson non-negative matrix factorization with sum-to-one constraints.
Topic modeling via sum-to-one constrained Poisson non-negative
matrix factorization (NMF), built on PyTorch and runs on GPU.

## Installation

You can install tinytopics from PyPI:

```bash
pip install tinytopics
```

Or install the development version from GitHub:

```bash
git clone https://github.com/nanxstats/tinytopics.git
cd tinytopics
python3 -m pip install -e .
```

Try [getting started](articles/get-started.md).

## Known issues

Expand Down
6 changes: 6 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
Topic modeling via sum-to-one constrained Poisson non-negative
matrix factorization (NMF), built on PyTorch and runs on GPU.

## Installation

You can install tinytopics from PyPI:

```bash
Expand All @@ -18,3 +20,7 @@ python3 -m pip install -e .
```

Try [getting started](articles/get-started.md).

## Known issues

- [ ] Running on CPU produces different (and worse) models than on GPU.
4 changes: 4 additions & 0 deletions docs/scripts/purl.sh → docs/scripts/sync.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/bin/bash

# Sync README.md
cp README.md docs/index.md

# Sync articles
quarto render docs/articles/get-started.qmd
quarto convert docs/articles/get-started.qmd
jupyter nbconvert --to python docs/articles/get-started.ipynb --output ../../examples/get-started.py
Expand Down

0 comments on commit 2fa73a2

Please sign in to comment.