-
Notifications
You must be signed in to change notification settings - Fork 835
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
S2i integration #115
S2i integration #115
Conversation
docs/wrappers/python.md
Outdated
|
||
You can use these wrappers with any model that offers a python API. Some examples are: | ||
* Scikit-learn | ||
* Keras | ||
* statsmodels |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why statsmodels was removed?
docs/wrappers/python.md
Outdated
|
||
After you have copied the required files in your model folder, you run the Seldon wrapper script to turn your model into a dockerised microservice. The wrapper script requires as arguments the path to your model directory, the model name, a version for the docker image, and the name of a docker repository. It will generate a "build" directory that contains the microservice, Dockerfile, etc. | ||
* The file is call MyModel.py and it defines a class MyModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
called
docs/wrappers/python.md
Outdated
X : array-like | ||
feature_names : array of feature names (optional) | ||
""" | ||
print("Predict called - will run idenity function") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
identity
docs/wrappers/python.md
Outdated
|
||
Let's explain each piece of this command in more details. | ||
Define the core parametehttps://github.com/SeldonIO/seldon-core/tree/master/examples/transformersrs needed by our python builder image to wrap your model. An example is: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
url in the middle of a word
docs/wrappers/python.md
Outdated
|
||
``` docker run seldonio/core-python-wrapper:0.7 ``` : run the core-python-wrapper container. | ||
These values can also be provided or overrriden on the command line when building the image. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overriden
wrappers/s2i/python/s2i/bin/usage
Outdated
Sample MODEL invocation: | ||
------------------------ | ||
|
||
s2i build https://github.com/seldonio/seldon-core.git --context-dir=wrappers/s2i/python/test/model-template-app seldonio/seldon-core-s2i-python seldon-core-template-model |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seldonio/seldon-core-s2i-python3
wrappers/s2i/python/s2i/bin/usage
Outdated
Sample ROUTER invocation: | ||
------------------------- | ||
|
||
s2i build https://github.com/seldonio/seldon-core.git --context-dir=wrappers/s2i/python/test/router-template-app seldonio/seldon-core-s2i-python seldon-core-template-router |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python3
wrappers/s2i/python/s2i/bin/usage
Outdated
Sample TRANSFORMER invocation: | ||
------------------------------ | ||
|
||
s2i build https://github.com/seldonio/seldon-core.git --context-dir=wrappers/s2i/python/test/transformer-template-app seldonio/seldon-core-s2i-python seldon-core-template-transformer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python3
docs/wrappers/python.md
Outdated
|
||
For reference, here is the complete list of arguments that can be passed to the script. | ||
An example invocation is: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Give example of using local code as well?
fixes #115