Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 205b570

Browse filesBrowse files
committed
added notimplemetedtest
1 parent 450b5c6 commit 205b570
Copy full SHA for 205b570
Expand file treeCollapse file tree

30 files changed

+321
-196
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,11 @@ env:
3232
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append"
3333
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append"
3434
- PYTHON_VERSION=3.6 FLOATX='float64' BUILD_DOCS="true" TESTCMD="--durations=10 --cov-append"
35-
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append pmlearn/tests/test_logistic.py pmlearn/tests/test_base.py pmlearn/tests/test_base1.py pmlearn/tests/test_gpr.py"
35+
- PYTHON_VERSION=3.6 FLOATX='float64' TESTCMD="--durations=10 --cov-append pmlearn/tests/test_base.py"
3636

3737
script:
3838
- . ./scripts/test.sh $TESTCMD
3939
- . ./scripts/confirm_mpl_optional.sh
4040

4141
after_success:
42-
# - if [[ "$BUILD_DOCS" == "true" ]]; then travis-sphinx deploy -c "docs.pymc.io"; fi
4342
- coveralls

‎CONTRIBUTING.rst

Copy file name to clipboardExpand all lines: CONTRIBUTING.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Pull Request Checklist
8181
.. code-block:: bash
8282
8383
conda activate myenv
84-
python -m unittest discover -cv
84+
python -m pytest
8585
8686
NOTE: On Windows, in your Anaconda Prompt, run ``activate myenv``.
8787

‎docs/api/pmlearn.gaussian_process.rst

Copy file name to clipboardExpand all lines: docs/api/pmlearn.gaussian_process.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
pmlearn.gaussian\_process package
22
=================================
33

4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
pmlearn.gaussian_process.tests
10+
411
Submodules
512
----------
613

+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pmlearn.gaussian\_process.tests package
2+
=======================================
3+
4+
Submodules
5+
----------
6+
7+
pmlearn.gaussian\_process.tests.test\_gpr module
8+
------------------------------------------------
9+
10+
.. automodule:: pmlearn.gaussian_process.tests.test_gpr
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
16+
Module contents
17+
---------------
18+
19+
.. automodule:: pmlearn.gaussian_process.tests
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:

‎docs/api/pmlearn.linear_model.rst

Copy file name to clipboardExpand all lines: docs/api/pmlearn.linear_model.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
pmlearn.linear\_model package
22
=============================
33

4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
pmlearn.linear_model.tests
10+
411
Submodules
512
----------
613

+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pmlearn.linear\_model.tests package
2+
===================================
3+
4+
Submodules
5+
----------
6+
7+
pmlearn.linear\_model.tests.test\_base module
8+
---------------------------------------------
9+
10+
.. automodule:: pmlearn.linear_model.tests.test_base
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
pmlearn.linear\_model.tests.test\_logistic module
16+
-------------------------------------------------
17+
18+
.. automodule:: pmlearn.linear_model.tests.test_logistic
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
24+
Module contents
25+
---------------
26+
27+
.. automodule:: pmlearn.linear_model.tests
28+
:members:
29+
:undoc-members:
30+
:show-inheritance:

‎docs/api/pmlearn.mixture.rst

Copy file name to clipboardExpand all lines: docs/api/pmlearn.mixture.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
pmlearn.mixture package
22
=======================
33

4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
pmlearn.mixture.tests
10+
411
Submodules
512
----------
613

‎docs/api/pmlearn.mixture.tests.rst

Copy file name to clipboard
+30Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
pmlearn.mixture.tests package
2+
=============================
3+
4+
Submodules
5+
----------
6+
7+
pmlearn.mixture.tests.test\_dirichlet\_process module
8+
-----------------------------------------------------
9+
10+
.. automodule:: pmlearn.mixture.tests.test_dirichlet_process
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
pmlearn.mixture.tests.test\_gaussian\_mixture module
16+
----------------------------------------------------
17+
18+
.. automodule:: pmlearn.mixture.tests.test_gaussian_mixture
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
24+
Module contents
25+
---------------
26+
27+
.. automodule:: pmlearn.mixture.tests
28+
:members:
29+
:undoc-members:
30+
:show-inheritance:

‎docs/api/pmlearn.naive_bayes.rst

Copy file name to clipboardExpand all lines: docs/api/pmlearn.naive_bayes.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
pmlearn.naive\_bayes package
22
============================
33

4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
pmlearn.naive_bayes.tests
10+
411
Submodules
512
----------
613

+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pmlearn.naive\_bayes.tests package
2+
==================================
3+
4+
Submodules
5+
----------
6+
7+
pmlearn.naive\_bayes.tests.test\_naive\_bayes module
8+
----------------------------------------------------
9+
10+
.. automodule:: pmlearn.naive_bayes.tests.test_naive_bayes
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
16+
Module contents
17+
---------------
18+
19+
.. automodule:: pmlearn.naive_bayes.tests
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:

‎docs/api/pmlearn.neural_network.rst

Copy file name to clipboardExpand all lines: docs/api/pmlearn.neural_network.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
pmlearn.neural\_network package
22
===============================
33

4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
9+
pmlearn.neural_network.tests
10+
411
Submodules
512
----------
613

+22Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
pmlearn.neural\_network.tests package
2+
=====================================
3+
4+
Submodules
5+
----------
6+
7+
pmlearn.neural\_network.tests.test\_mutlilayer\_perceptron module
8+
-----------------------------------------------------------------
9+
10+
.. automodule:: pmlearn.neural_network.tests.test_mutlilayer_perceptron
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
16+
Module contents
17+
---------------
18+
19+
.. automodule:: pmlearn.neural_network.tests
20+
:members:
21+
:undoc-members:
22+
:show-inheritance:

‎docs/api/pmlearn.tests.rst

Copy file name to clipboardExpand all lines: docs/api/pmlearn.tests.rst
-40Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,6 @@ pmlearn.tests.test\_base module
1212
:undoc-members:
1313
:show-inheritance:
1414

15-
pmlearn.tests.test\_base1 module
16-
--------------------------------
17-
18-
.. automodule:: pmlearn.tests.test_base1
19-
:members:
20-
:undoc-members:
21-
:show-inheritance:
22-
23-
pmlearn.tests.test\_dirichlet\_process module
24-
---------------------------------------------
25-
26-
.. automodule:: pmlearn.tests.test_dirichlet_process
27-
:members:
28-
:undoc-members:
29-
:show-inheritance:
30-
31-
pmlearn.tests.test\_gaussian\_mixture module
32-
--------------------------------------------
33-
34-
.. automodule:: pmlearn.tests.test_gaussian_mixture
35-
:members:
36-
:undoc-members:
37-
:show-inheritance:
38-
39-
pmlearn.tests.test\_gpr module
40-
------------------------------
41-
42-
.. automodule:: pmlearn.tests.test_gpr
43-
:members:
44-
:undoc-members:
45-
:show-inheritance:
46-
47-
pmlearn.tests.test\_logistic module
48-
-----------------------------------
49-
50-
.. automodule:: pmlearn.tests.test_logistic
51-
:members:
52-
:undoc-members:
53-
:show-inheritance:
54-
5515

5616
Module contents
5717
---------------

‎docs/install.rst

Copy file name to clipboardExpand all lines: docs/install.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ Assuming a standard Python environment is installed on your machine (including p
1313
1414
This also installs required dependencies including Theano.
1515
For alternative Theano installations (e.g., gpu), please see the
16-
instructions on the main `Theano webpage <http://deeplearning.net/software/theano/>`_ and `TensorFlow webpage <https://www.tensorflow.org/>`_, respectively.
16+
instructions on the main `Theano webpage <http://deeplearning.net/software/theano/>`_.

‎pmlearn/base.py

Copy file name to clipboardExpand all lines: pmlearn/base.py
+2-9Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ def __init__(self):
3535
self.num_training_samples = None
3636

3737
def create_model(self):
38+
"""Create model
39+
"""
3840
raise NotImplementedError
3941

4042
def _set_shared_vars(self, shared_vars):
@@ -128,15 +130,6 @@ def _set_default_inference_args(self):
128130

129131
return inference_args
130132

131-
# def fit(self):
132-
# raise NotImplementedError
133-
#
134-
# def predict(self):
135-
# raise NotImplementedError
136-
#
137-
# def score(self):
138-
# raise NotImplementedError
139-
140133
def save(self, file_prefix, custom_params=None):
141134
"""
142135
Saves the trace and custom params to files with the given file_prefix.

‎pmlearn/exceptions.py

Copy file name to clipboardExpand all lines: pmlearn/exceptions.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class NotFittedError(ValueError, AttributeError):
2121
... except NotFittedError as e:
2222
... print(repr(e))
2323
... # doctest: +NORMALIZE_WHITESPACE +ELLIPSIS
24-
NotFittedError('This GaussianProcessRegressor instance is not fitted yet'...)
24+
NotFittedError('This GaussianProcessRegressor instance is not fitted yet'.)
2525
"""
2626

2727

‎pmlearn/gaussian_process/tests/__init__.py

Copy file name to clipboardExpand all lines: pmlearn/gaussian_process/tests/__init__.py
Whitespace-only changes.

‎pmlearn/linear_model/tests/__init__.py

Copy file name to clipboardExpand all lines: pmlearn/linear_model/tests/__init__.py
Whitespace-only changes.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.