Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix version of tensorflow to 1.* for tensorflow 2 implement a TfKeras…
… Model later
  • Loading branch information
somefreestring committed Jan 6, 2020
commit f8f878bd34907e66b292b7dc2e93ea18f1dce854
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ df.predict(pmu.Model.load("/tmp/burrito.model")).tail()
* add Proximity https://stats.stackexchange.com/questions/270201/pooling-levels-of-categorical-variables-for-regression-trees/275867#275867

## Wanna help?
* currently I only need binary classification
* maybe you want to add a feature for multiple classes
* for tensorflow 2.x implement a new TfKeras Model
* for non classification problems you might want to augment the `Summary`
* write some tests
* add different more charts for a better understanding/interpretation of the models
Expand Down
16 changes: 16 additions & 0 deletions docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,22 @@ Model
.. automethod:: __init__


SkitModel
.........
Simply provide the sklearn model i.e. LogisticRegression along with the features and labels


KerasModel
..........
.. autoclass:: pandas_ml_utils.Model
:members:

.. automethod:: __init__

NOTE in case of tensorflow backend currently only tensorflow 1.* is supported.
For tensorflow 2.x we need implement a TfKeras Model.


FeaturesAndLabels
-----------------
.. autoclass:: pandas_ml_utils.FeaturesAndLabels
Expand Down
4 changes: 3 additions & 1 deletion pandas_ml_utils/model/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ def __init__(self,
**kwargs):
"""
Keras compatible implementation of :class:`.Model`.
:param keras_compiled_model_provider: a callable which provides a compiled ready to fit keras model
:param keras_compiled_model_provider: a callable which provides an eventually compiled ready to fit keras model.
if the model is not compiled you ned to pass "optimizer" argument as kwargs.
NOTE: the tensorflow backend is currently limited to 1.*
:param features_and_labels: see :class:`.Model`
:param summary_provider: :class:`.Model`.
:param epochs: number of epochs passed to the keras fit function
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sortedcontainers
scikit-learn
statsmodels
tensorflow
tensorflow==1.*
matplotlib
cachetools
yfinance
Expand Down