-
Notifications
You must be signed in to change notification settings - Fork 0
Random sample #13
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
Open
smallfishabc
wants to merge
19
commits into
main
Choose a base branch
from
random_sample
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Random sample #13
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
41895cd
add msa refinement model
stephprince 4bb3a6b
clean up older code
stephprince 838a078
add comments
stephprince d1c24b1
update model initialization
stephprince 3aee914
update optimization model
stephprince 258b6a7
add fabric training function
stephprince 7caba1d
update logging
stephprince 30f48bc
Stave the random sample script
c1b4ebf
backup before debugging
84af802
updated to the latest SAXSattention
2370681
updated script to fix the length problem
3a650b5
Remove redundant files. Save every intermediate structure
3a1083a
Safe Push before checkout
d68dd20
Added test scripts before merged to the main branch
d5729fe
Merge branch 'main' into random_sample
stephprince c19f3b5
track additional files
bc436ff
Fixed some minor seeting error on the inference and using Claude to g…
907a1f1
Fixing the ensemble_loss_ store_before check up previous branch.
a07de66
Added new loss function for ensemble and ready for deployment
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
Binary file not shown.
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,111 @@ | ||
| name: Tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ main, develop ] | ||
| pull_request: | ||
| branches: [ main, develop ] | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [ubuntu-latest] | ||
| python-version: ['3.8', '3.9', '3.10', '3.11'] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Cache pip packages | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: ~/.cache/pip | ||
| key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt', '**/pyproject.toml') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-pip- | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -e . | ||
| pip install -e ".[dev]" | ||
|
|
||
| - name: Run unit tests | ||
| run: | | ||
| pytest tests/ -v -m "unit" --cov=src/metfish --cov-report=xml --cov-report=term-missing | ||
|
|
||
| - name: Run basic tests (no torch/openfold) | ||
| run: | | ||
| pytest tests/ -v -m "not requires_torch and not requires_openfold and not slow" --cov=src/metfish --cov-report=xml --cov-report=term-missing | ||
|
|
||
| - name: Upload coverage to Codecov | ||
| uses: codecov/codecov-action@v3 | ||
| with: | ||
| file: ./coverage.xml | ||
| flags: unittests | ||
| name: codecov-umbrella | ||
| fail_ci_if_error: false | ||
|
|
||
| test-with-optional-deps: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ['3.11'] | ||
|
|
||
| steps: | ||
| - 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 with optional packages | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -e . | ||
| pip install -e ".[dev]" | ||
| pip install -e ".[training]" || echo "Training dependencies installation failed, continuing..." | ||
|
|
||
| - name: Run all tests | ||
| run: | | ||
| pytest tests/ -v --cov=src/metfish --cov-report=xml --cov-report=term-missing | ||
| continue-on-error: true | ||
|
|
||
| lint: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: '3.11' | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install -e ".[dev]" | ||
|
|
||
| - name: Run ruff | ||
| run: | | ||
| ruff check src/ tests/ | ||
| continue-on-error: true | ||
|
|
||
| - name: Run black check | ||
| run: | | ||
| black --check src/ tests/ | ||
| continue-on-error: true | ||
|
|
||
| - name: Run codespell | ||
| run: | | ||
| codespell src/ tests/ README.md | ||
| continue-on-error: true |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
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.
I don't think this file should be included