-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from mheilman/rst_readme
convert README to rst for pypi
- Loading branch information
Showing
7 changed files
with
78 additions
and
64 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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
include CHANGELOG.md | ||
include LICENSE.txt | ||
include README.md | ||
include README.rst |
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,70 @@ | ||
muffnn | ||
====== | ||
|
||
`scikit-learn <http://scikit-learn.org>`__-compatible neural network | ||
models in implemented in `TensorFlow <https://www.tensorflow.org/>`__ | ||
|
||
Installation | ||
============ | ||
|
||
Installation with ``pip`` is recommended: | ||
|
||
.. code:: bash | ||
pip install muffnn | ||
You can install the dependencies via: | ||
|
||
.. code:: bash | ||
pip install -r requirements.txt | ||
If you have trouble installing TensorFlow, see `this | ||
page <https://www.tensorflow.org/install/>`__ for more details. | ||
|
||
For development, a few additional dependencies are needed: | ||
|
||
.. code:: bash | ||
pip install -r dev-requirements.txt | ||
Usage | ||
===== | ||
|
||
Each estimator in the code follows the scikit-learn API. Thus usage | ||
follows the scikit-learn conventions: | ||
|
||
.. code:: python | ||
from muffnn import MLPClassifier | ||
X, y = load_some_data() | ||
mlp = MLPClassifier() | ||
mlp.fit(X, y) | ||
X_new = load_some_unlabeled_data() | ||
y_pred = mlp.predict(X_new) | ||
Further, serialization of the TensorFlow graph and data is handled | ||
automatically when the object is pickled: | ||
|
||
.. code:: python | ||
import pickle | ||
with open('est.pkl', 'wb') as fp: | ||
pickle.dump(est, fp) | ||
Contributing | ||
============ | ||
|
||
See ``CONTIBUTING.md`` for information about contributing to this | ||
project. | ||
|
||
License | ||
======= | ||
|
||
BSD-3 | ||
|
||
See ``LICENSE.txt`` for details. |
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