Initial commit

This commit is contained in:
2022-11-04 11:53:06 +01:00
parent 89bacb501e
commit 3689852205
36 changed files with 1962 additions and 1 deletions

17
examples/plot_template.py Normal file
View File

@@ -0,0 +1,17 @@
"""
===========================
Plotting Template Estimator
===========================
An example plot of :class:`bayesclass.template.TemplateEstimator`
"""
import numpy as np
from matplotlib import pyplot as plt
from bayesclass 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()