You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To easily update Theano: `pip install git+git://github.com/Theano/Theano.git --upgrade`
14
11
15
-
2. Search for similar issues. It's possible somebody has encountered this bug already.
16
-
17
-
Still having a problem? Open an issue on Github to let us know.
12
+
2. Search for similar issues. It's possible somebody has encountered this bug already. Still having a problem? Open an issue on Github to let us know.
18
13
19
14
3. Make sure you provide us with useful information about your configuration: what OS are you using? What Keras backend are you using? Are you running on GPU? If so, what is your version of Cuda, of cuDNN? What is your GPU?
20
15
@@ -41,27 +36,25 @@ We love pull requests. Here's a quick guide:
41
36
42
37
1. If your PR introduces a change in functionality, make sure you start by opening an issue to discuss whether the change should be made, and how to handle it. This will save you from having your PR closed down the road! Of course, if your PR is a simple bug fix, you don't need to do that.
43
38
44
-
2.Code. This is the hard part! We use PEP8 syntax conventions, but we aren't dogmatic when it comes to line length. Make sure your lines stay reasonably sized, though.
39
+
2.Write the code. This is the hard part! We use PEP8 syntax conventions, but we aren't dogmatic when it comes to line length. Make sure your lines stay reasonably sized, though.
45
40
46
41
3. Make sure any new function or class you introduce has proper docstrings. Make sure any code you touch still has up-to-date docstrings and documentation.
47
42
48
43
4. Write tests. Your code should have full unit test coverage. If you want to see your PR merged promptly, this is crucial.
49
44
50
-
5. Run our test suite locally. It's easy: from the Keras folder, simply run:
51
-
```
52
-
py.test tests/
53
-
```
45
+
5. Run our test suite locally. It's easy: from the Keras folder, simply run: `py.test tests/`.
46
+
- You will need to install `pytest`, `coveralls`, `pytest-cov`, `pytest-xdist`: `pip install pytest pytest-cov python-coveralls pytest-xdist`
47
+
48
+
6. Make sure all tests are passing:
49
+
- with the Theano backend, on Python 2.7 and Python 3.5
7. When committing, use appropriate, descriptive commit messages. Make sure that your branch history is not a string of "bug fix", "fix", "oops", etc. When submitting your PR, squash your commit history into 1-3 easy to follow commits, to make sure the project history stays clean and readable.
58
53
59
-
Make sure all tests are passing:
60
-
- with the Theano backend, on Python 2.7 and Python 3.5
61
-
- with the TensorFlow backend, on Python 2.7
54
+
8. Update the documentation. If introducing new functionality, make sure you include code snippets demonstrating the usage of your new feature.
62
55
63
-
6. When committing, use appropriate, descriptive commit messages. Make sure that your branch history is not a string of "bug fix", "fix", "oops", etc. When submitting your PR, squash your commit history into 1-3 easy to follow commits, to make sure the project history stays clean and readable.
56
+
9. Submit your PR. If your changes have been approved in a previous discussion, and if you have have complete (and passing) unit tests, your PR is likely to be merged promptly. Otherwise, well...
64
57
65
-
7. Update the documentation. If introducing new functionality, make sure you include code snippets demonstrating the usage of your new feature.
58
+
## Adding new examples
66
59
67
-
8. Submit your PR. If your changes have been approved in a previous discussion, and if you have have complete (and passing) unit tests, your PR is likely to be merged promptly. Otherwise, well...
60
+
Even if you don't contribute to the Keras source code, if you have an application of Keras that is concise and powerful, please consider adding it to our collection of examples. Existing examples show idomatic Keras code: make sure to keep your own script in the same spirit.
0 commit comments