You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.rst
+31-1Lines changed: 31 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,8 +32,38 @@ To get started, please refer to `Quick Start <./quick_start.html>`__. To learn m
32
32
33
33
This package is under active development. Please feel free to open an `issue <https://github.com/AaronX121/Ensemble-Pytorch/issues>`__ if your have any problem. In addition, any feature request or `pull request <https://github.com/AaronX121/Ensemble-Pytorch/pulls>`__ would be highly welcomed.
34
34
35
+
Example on How to Use
36
+
---------------------
37
+
38
+
.. code:: python
39
+
40
+
from torchensemble import ensemble_method # import ensemble (e.g., VotingClassifier)
41
+
42
+
# Load the data
43
+
train_loader = DataLoader(...)
44
+
test_loader = DataLoader(...)
45
+
46
+
# Define the ensemble
47
+
model = ensemble_method(estimator=base_estimator, # your deep learning model
0 commit comments