Plotting Template EstimatorΒΆ

An example plot of skltemplate.template.TemplateEstimator

../_images/sphx_glr_plot_template_001.png
import numpy as np
from matplotlib import pyplot as plt
from skltemplate import TemplateEstimator

X = np.arange(100).reshape(100, 1)
y = np.zeros((100, ))
estimator = TemplateEstimator()
estimator.fit(X, y)
plt.plot(estimator.predict(X))
plt.show()

Total running time of the script: ( 0 minutes 0.121 seconds)

Gallery generated by Sphinx-Gallery