-
Notifications
You must be signed in to change notification settings - Fork 348
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pointcloud): Add HDBSCAN to point cloud (#57)
* Restore umap_demo deleted * Add HDBSCAN clustering * Fix style * Fix json int bug * Update src/phoenix/pcloud/pcloud.py Co-authored-by: Mikyo King <[email protected]> * Update src/phoenix/pcloud/projectors.py Co-authored-by: Mikyo King <[email protected]> * Delete _fit_transform method * Restore umap_demo deleted * Add HDBSCAN clustering * Fix style * Fix json int bug * Delete _fit_transform method * Update src/phoenix/pcloud/pcloud.py Co-authored-by: Mikyo King <[email protected]> * Update src/phoenix/pcloud/projectors.py Co-authored-by: Mikyo King <[email protected]> * fix types: * more fixes * black * Add .coverage to gitignore * Add tables dependency toml file * wip * Use pull_request_target, better for forked repos * Add PR lint action * Not use pull_request_target * Add edited trigger * Ignore type hints from umap and hdbscan * Rename module pcloud -> pointcloud * Ignore E203 flake8 * HDBSCAN finished * wip * Define and use Coordinates classes * Parametrize HDBSCAN hyperparams * Rename to DriftPointCloud * Update .github/workflows/pull-requests.yaml Co-authored-by: Mikyo King <[email protected]> Co-authored-by: Mikyo King <[email protected]>
- Loading branch information
1 parent
7629de0
commit 9aa2a3f
Showing
9 changed files
with
443 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Semantic PR | ||
|
||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
jobs: | ||
main: | ||
name: Validate PR title | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,113 +1,113 @@ | ||
name: Python CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
paths: | ||
- "**.py" | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: test-python-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
group: test-python-${{ github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
pip-version: 22.3.1 | ||
pip-version: 22.3.1 | ||
|
||
jobs: | ||
types: | ||
name: Type Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Check types | ||
run: | | ||
hatch run types:check | ||
types: | ||
name: Type Check | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Check types | ||
run: | | ||
hatch run type:check | ||
code-format: | ||
name: Code Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Check format | ||
run: | | ||
hatch run style:check | ||
code-format: | ||
name: Code Format | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Check format | ||
run: | | ||
hatch run style:check | ||
test-coverage: | ||
name: Test Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Test coverage | ||
run: | | ||
hatch run coverage | ||
test-coverage: | ||
name: Test Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.10 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Test coverage | ||
run: | | ||
hatch run coverage | ||
docs-coverage: | ||
name: Documentation Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Check documentation coverage | ||
run: | | ||
hatch run docs:check | ||
docs-coverage: | ||
name: Documentation Coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python 3.11 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Check documentation coverage | ||
run: | | ||
hatch run docs:check | ||
test: | ||
name: Test Python | ||
runs-on: ${{ matrix.os }} | ||
needs: [code-format, test-coverage, docs-coverage] | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
python-version: ["3.10"] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Run tests | ||
run: | | ||
hatch run tests | ||
test: | ||
name: Test Python | ||
runs-on: ${{ matrix.os }} | ||
needs: [ code-format, test-coverage, docs-coverage ] | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-latest, macos-latest, windows-latest ] | ||
python-version: [ "3.10" ] | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
- name: Set up python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip==${{ env.pip-version }} | ||
pip install hatch | ||
- name: Run tests | ||
run: | | ||
hatch run tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# Generated dirs | ||
.vscode | ||
.idea | ||
.coverage | ||
node_modules | ||
dist | ||
*__pycache__* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.0.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
from .pointcloud import CalculateUMAP | ||
from .pointcloud import DriftPointCloud | ||
from .projectors import UMAPProjector |
Oops, something went wrong.