-
Notifications
You must be signed in to change notification settings - Fork 572
Add NLP metrics package #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+677
−30
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
50907c9
fix file mode of a non-executable text file
plandes b831a8b
add basic NLP scoring methods package, unit tests, and automation
plandes 1afdce1
fix unit tests
plandes 787fe48
fix unit tests
plandes da40b62
add test resources; fix tests
plandes 2e26dd3
add CI bulid status badge
plandes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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,36 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| paths-ignore: | ||
| - '**.md' | ||
| - 'doc/*' | ||
| branches: | ||
| - master | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ['3.11'] | ||
| steps: | ||
| - name: Checkout reposistory | ||
| uses: actions/checkout@v3 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v3 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Display Python version | ||
| run: python -c "import sys; print(sys.version)" | ||
|
|
||
| - name: Install dependent packages | ||
| run: 'make deps' | ||
|
|
||
| - name: Run tests | ||
| run: 'make test' | ||
This file contains hidden or 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,7 +1,7 @@ | ||
| .idea | ||
| *DS_Store* | ||
| *output* | ||
| *resource* | ||
| resource* | ||
|
|
||
| debug_entry* | ||
| playground.ipynb | ||
|
|
||
This file contains hidden or 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 hidden or 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,31 @@ | ||
| #@meta {author: "Paul Landes"} | ||
| #@meta {desc: "PyHealth build automation", date: "2025-05-22"} | ||
|
|
||
|
|
||
| ## Build | ||
| # | ||
| # directory with the unit tests | ||
| PY_TEST_DIR ?= tests | ||
| # test file glob pattern | ||
| PY_TEST_GLOB ?= test_metrics.py | ||
|
|
||
|
|
||
| ## Targets | ||
| # | ||
| # install dependencies | ||
| .PHONY: deps | ||
| deps: | ||
| pip install -r requirements-nlp.txt | ||
|
|
||
| # run the unit test cases | ||
| .PHONY: test | ||
| test: | ||
| @echo "Running tests in $(PY_TEST_DIR)/$(PY_TEST_GLOB)" | ||
| python -m unittest discover \ | ||
| -s $(PY_TEST_DIR) -p '$(PY_TEST_GLOB)' -v | ||
|
|
||
| # clean derived objects | ||
| .PHONY: clean | ||
| clean: | ||
| @echo "removing __pycache__" | ||
| @find . -type d -name __pycache__ -prune -exec rm -r {} \; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo in workflow step: 'reposistory' should be corrected to 'repository'.