-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
502 additions
and
119 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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Contributing to ktrain | ||
|
||
We are happy to accept your contributions to make `ktrain` better! To avoid unnecessary work, please stick to the following process: | ||
|
||
1. Check if there is already [an issue](https://github.com/amaiya/ktrain/issues) for your concern. | ||
2. If there is not, open a new one to start a discussion. We hate to close finished PRs. | ||
3. We would be happy to accept a pull request, if it is decided that your concern requires a code change. | ||
|
||
|
||
## Developing locally | ||
|
||
We suggest cloning the repository and then checking out tutorials and examples for information on how to call various methods. | ||
Most relevant classes and methods should be documented. If not, you might consider helping to improve the docstrings. | ||
|
||
### Setup | ||
|
||
See the [installation instructions](https://github.com/amaiya/ktrain#installation) for setting things up. Using virtual environment (such as [venv](https://docs.python.org/3/library/venv.html) and [Poetry](https://python-poetry.org/)) is strongly recommended. | ||
|
||
### Tests | ||
|
||
To run all tests, execute: | ||
```bash | ||
cd ktrain/tests | ||
python3 -m unittest | ||
``` | ||
|
||
To run a specific test (e.g., `test_dataloading.py`) | ||
```bash | ||
python3 test_dataloading.py | ||
``` | ||
|
||
## PR Guidelines | ||
|
||
- Keep each PR focused. While it's more convenient, please try to avoid combining several unrelated fixes together. | ||
- Checkout to `develop` branch before make any changes. Make sure you choose `develop` branch as base on your PR. | ||
- Try to maintain backwards compatibility. If this is not possible, please discuss with maintainer(s). | ||
- Use four spaces for indentation. |
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
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
Oops, something went wrong.