{% from sklearn.utils import estimator_html_repr %} {% import json %}
This is a sample Tornado tempate for MLHandler. It exposes the following variables:
{{! handler }}
: The MLHandler
instance.{{! handler.model }}
: The scikit-learn
model or pipeline associated with this handler.{{! data }}
: The pandas.DataFrame
containing the training data.You can write your own template, and specify it as the template
argument of your MLHandler
configuration. The above
variables will be available to any such template.
The following table shows your training data.
{{ handler.get_opt('target_col',
'Undefined') }}
{{
handler.get_opt('exclude', []) }}
{{
handler.get_opt('cats', []) }}
{{
handler.get_opt('nums', []) }}
Your model is a {{ handler.model.__class__.__name__ }}, with the following parameters:
{{ handler.model.get_params() }}
Download the model here.