Skip to content

Commit

Permalink
Merge pull request #96 from bjherger/contributing_datatypes
Browse files Browse the repository at this point in the history
Adding datatypes to CONTRIBUTING.md, adding CONTRIBUTING.md to docs
  • Loading branch information
bjherger committed Dec 3, 2018
2 parents 8926194 + 080b9e2 commit c9c38ec
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,20 @@ make html

## Adding new data types

TODO

If there's a specific datatype you'd like to use that's not built in (such as images, videos, or geospatial), you can
include it by using `Automater`'s `datatype_handlers` parameter.

A template datatype can be found in `keras_pandas/data_types/Abstract.py`. Filling out this template will yield a new
datatype handler. If you're happy with your work and want to share your new datatype handler, create a PR.

To create add a new datatype:

- Create a new `.py` file in `keras_pandas/data_types`, based on `keras_pandas/data_types/Abstract`
- Fill out your new datatype
- Create a new test class for your new datatype (perhaps based on `tests/testDatatypeTemplate` and / or
`tests/testCategorical`)
- Add the new datatype to `keras_pandas/Automater.datatype_handlers`, in `keras_pandas/Automater.__init__()`

## Adding new examples

Expand Down
1 change: 1 addition & 0 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. mdinclude:: ../CONTRIBUTING.md
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ Welcome to keras-pandas! I'd recommend that you start with the keras-pandas sect
lib
constants
transformations
contributing

0 comments on commit c9c38ec

Please sign in to comment.