Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit bc35003

Browse files
committed
Removing all code that has been moved to Tensorflow (#169)
* Removing all code that has been moved to Tensorflow. Import skflow from tensorflow now. * update travis script to use TF 0.8 * Updated readme * cleanup extra imports in __init__ * corrected version of py3 tensorflow
1 parent 8142655 commit bc35003

50 files changed

Lines changed: 22 additions & 4576 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.rst

Lines changed: 12 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,52 +4,19 @@ SkFlow has been moved to Tensorflow.
44
SkFlow has been moved to http://github.com/tensorflow/tensorflow into contrib folder specifically located `here <https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/learn/python/learn>`__.
55
The development will continue there. Please submit any issues and pull requests to Tensorflow repository instead.
66

7-
This repository will ramp down, including after next Tensorflow release we will wind down code here. Please see instructions on most recent installation `here <https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/learn/python/learn>`__.
8-
9-
Previously:
10-
11-
|Travis-CI Build Status| |Codecov Status| |License| |PyPI version| |Join the chat at
12-
https://gitter.im/tensorflow/skflow|
13-
14-
Scikit Flow
15-
===========
16-
17-
This is a simplified interface for TensorFlow, to get people started on predictive analytics and data mining.
18-
19-
Library covers variety of needs from linear models to *Deep Learning* applications like text and image understanding.
20-
21-
Why *TensorFlow*?
22-
-----------------
23-
- TensorFlow provides a good backbone for building different shapes of machine learning applications.
24-
- It will continue to evolve both in the distributed direction and as general pipelinining machinery.
25-
26-
Why *Scikit Flow*?
27-
-----------------
28-
- To smooth the transition from the Scikit Learn world of one-liner machine learning into the more open world of building different shapes of ML models. You can start by using fit/predict and slide into TensorFlow APIs as you are getting comfortable.
29-
- To provide a set of reference models that would be easy to integrate with existing code.
7+
This repository will ramp down, including after next Tensorflow release we will wind down code here.
8+
Please see instructions on most recent installation `here <https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/learn/python/learn>`__.
309

3110
Installation
32-
============
11+
------------
3312

34-
Dependencies
35-
-----------
36-
- Python: 2.7, 3.4+
37-
- Scikit learn: 0.16, 0.17, 0.18+
38-
- Tensorflow: 0.7+
13+
No installation needed, SkFlow has been moved into Tensorflow 0.8+.
14+
Make sure you have Tensorflow 0.8+ version and you can start using SkFlow right away by importing like this:
3915

40-
First, you need to make sure you have `TensorFlow <https://github.com/tensorflow/tensorflow#installation>`__ and `Scikit Learn <http://scikit-learn.org/stable/install.html>`__ installed.
41-
42-
Run the following to install the stable version from PyPI:
43-
44-
.. code:: bash
45-
46-
pip install skflow
47-
48-
Or run the following to install from the development version from Github:
16+
.. code:: python
4917
50-
.. code:: bash
18+
import tensorflow.contrib.learn as skflow
5119
52-
pip install git+git://github.com/tensorflow/skflow.git
5320
5421
Tutorial
5522
--------
@@ -90,7 +57,7 @@ Simple linear classification:
9057

9158
.. code:: python
9259
93-
import skflow
60+
import tensorflow.contrib.learn as skflow
9461
from sklearn import datasets, metrics
9562
9663
iris = datasets.load_iris()
@@ -106,7 +73,7 @@ Simple linear regression:
10673

10774
.. code:: python
10875
109-
import skflow
76+
import tensorflow.contrib.learn as skflow
11077
from sklearn import datasets, metrics, preprocessing
11178
11279
boston = datasets.load_boston()
@@ -123,7 +90,7 @@ Example of 3 layer network with 10, 20 and 10 hidden units respectively:
12390

12491
.. code:: python
12592
126-
import skflow
93+
import tensorflow.contrib.learn as skflow
12794
from sklearn import datasets, metrics
12895
12996
iris = datasets.load_iris()
@@ -139,7 +106,7 @@ Example of how to pass a custom model to the TensorFlowEstimator:
139106

140107
.. code:: python
141108
142-
import skflow
109+
import tensorflow.contrib.learn as skflow
143110
from sklearn import datasets, metrics
144111
145112
iris = datasets.load_iris()
@@ -163,7 +130,7 @@ Some example code:
163130

164131
.. code:: python
165132
166-
import skflow
133+
import tensorflow.contrib.learn as skflow
167134
168135
classifier = skflow.TensorFlowLinearRegression()
169136
classifier.fit(...)

scripts/travis_install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ case "$TASK" in
3939
"linux")
4040
case "$TRAVIS_PYTHON_VERSION" in
4141
"2.7")
42-
TENSORFLOW_PACKAGE_URL="https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp27-none-linux_x86_64.whl"
42+
TENSORFLOW_PACKAGE_URL="https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp27-none-linux_x86_64.whl"
4343
;;
4444
"3.4")
45-
TENSORFLOW_PACKAGE_URL="https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.7.1-cp34-none-linux_x86_64.whl"
45+
TENSORFLOW_PACKAGE_URL="https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.8.0rc0-cp34-cp34m-linux_x86_64.whl"
4646
;;
4747
esac
4848
;;
4949
"osx")
50-
TENSORFLOW_PACKAGE_URL="https://storage.googleapis.com/tensorflow/mac/tensorflow-0.7.1-py2-none-any.whl"
50+
TENSORFLOW_PACKAGE_URL="https://storage.googleapis.com/tensorflow/mac/tensorflow-0.8.0rc0-py2-none-any.whl"
5151
;;
5252
esac
5353
pip install "$TENSORFLOW_PACKAGE_URL" --ignore-installed six

skflow/__init__.py

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,12 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
import pkg_resources as pkg_rs
17-
import numpy as np
18-
import tensorflow as tf
16+
import warnings
1917

20-
from skflow.io import *
21-
from skflow.estimators import *
22-
from skflow import ops
23-
from skflow import preprocessing
24-
from skflow.io import data_feeder
25-
from skflow import models
26-
from skflow.trainer import TensorFlowTrainer
18+
try:
19+
from tensorflow.contrib.learn import *
20+
warnings.warn("skflow as separate library is deprecated. "
21+
"Use import tensorflow.contrib.learn as skflow instead.", DeprecationWarning)
22+
except ImportError:
23+
raise ImportError("Update your Tensorflow to 0.8+ to use latest skflow.")
2724

28-
__version__, SKLEARN_VERSION, TF_VERSION = \
29-
[pkg_rs.get_distribution(pkg).version for pkg in ['skflow', 'scikit-learn', 'tensorflow']]
30-
31-
if SKLEARN_VERSION < '0.16.0':
32-
raise ImportError("Your scikit-learn version needs to be at least 0.16. "
33-
"Your current version is %s. " % SKLEARN_VERSION)
34-
if TF_VERSION < '0.7.0':
35-
raise ImportError("Your tensorflow version needs to be at least 0.7. "
36-
"Your current version is %s. " % TF_VERSION)

skflow/addons/__init__.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

skflow/addons/config_addon.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

skflow/estimators/__init__.py

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)