Skip to content

Commit

Permalink
doc: fix format (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
shenxiangzhuang authored Nov 28, 2024
1 parent 8ff3640 commit 1e210de
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
9 changes: 3 additions & 6 deletions crowdkit/aggregation/classification/majority_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ class MajorityVote(BaseClassificationAggregator):
resulting label will have the largest sum of weights.
{% note info %}
If two or more labels have the largest number of votes, the resulting
label will be the same for all tasks that have the same set of labels with the same number of votes.
{% endnote %}
Note:
If two or more labels have the largest number of votes, the resulting
label will be the same for all tasks that have the same set of labels with the same number of votes.
Examples:
Basic Majority Vote:
Expand Down
9 changes: 3 additions & 6 deletions crowdkit/aggregation/classification/zero_based_skill.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,9 @@ class ZeroBasedSkill(BaseClassificationAggregator):
This process is repeated until the labels change or exceed the number of iterations.
{% note info %}
It is necessary that all workers in the dataset that is sent to `predict` exist in responses to
the dataset that was sent to `fit`.
{% endnote %}
Note:
It is necessary that all workers in the dataset that is sent to `predict` exist in responses to
the dataset that was sent to `fit`.
Examples:
>>> from crowdkit.aggregation import ZeroBasedSkill
Expand Down
10 changes: 4 additions & 6 deletions crowdkit/aggregation/multilabel/binary_relevance.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@ class BinaryRelevance(BaseClassificationAggregator):
each label is treated as a class in binary classification problem and aggregated separately using
aggregation algorithms for classification, e.g. Majority Vote or Dawid Skene.
{% note info %}
Note:
If this method is used for single-label classification, the output of the BinaryRelevance method may differ
from the output of the basic aggregator used for its intended purpose, since each class generates a binary
classification task, and therefore it is considered separately. For example, some objects may not have labels.
If this method is used for single-label classification, the output of the BinaryRelevance method may differ
from the output of the basic aggregator used for its intended purpose, since each class generates a binary
classification task, and therefore it is considered separately. For example, some objects may not have labels.
{% endnote %}
Examples:
>>> import pandas as pd
Expand Down

0 comments on commit 1e210de

Please sign in to comment.