Skip to content

Commit

Permalink
deploy: cfa1eff
Browse files Browse the repository at this point in the history
  • Loading branch information
amrit110 committed Dec 6, 2023
1 parent b1c6abe commit b6f2d43
Show file tree
Hide file tree
Showing 92 changed files with 14,237 additions and 14,404 deletions.
12 changes: 6 additions & 6 deletions api/_modules/cyclops/evaluate/metrics/accuracy.html
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ <h1>Source code for cyclops.evaluate.metrics.accuracy</h1><div class="highlight"

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import BinaryAccuracy</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import BinaryAccuracy</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 0, 1]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0, 1, 1, 1]</span>
<span class="sd"> &gt;&gt;&gt; metric = BinaryAccuracy()</span>
Expand Down Expand Up @@ -278,7 +278,7 @@ <h1>Source code for cyclops.evaluate.metrics.accuracy</h1><div class="highlight"

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MulticlassAccuracy</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MulticlassAccuracy</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 2, 2]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0, 0, 2, 2, 1]</span>
<span class="sd"> &gt;&gt;&gt; metric = MulticlassAccuracy(num_classes=3)</span>
Expand Down Expand Up @@ -363,7 +363,7 @@ <h1>Source code for cyclops.evaluate.metrics.accuracy</h1><div class="highlight"

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MultilabelAccuracy</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MultilabelAccuracy</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1, 1], [1, 0, 0]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0, 1, 0], [1, 0, 1]]</span>
<span class="sd"> &gt;&gt;&gt; metric = MultilabelAccuracy(num_labels=3)</span>
Expand Down Expand Up @@ -464,7 +464,7 @@ <h1>Source code for cyclops.evaluate.metrics.accuracy</h1><div class="highlight"
<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; # (binary)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import Accuracy</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import Accuracy</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 0, 1, 1]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0, 1, 1, 1]</span>
<span class="sd"> &gt;&gt;&gt; metric = Accuracy(task=&quot;binary&quot;)</span>
Expand All @@ -479,7 +479,7 @@ <h1>Source code for cyclops.evaluate.metrics.accuracy</h1><div class="highlight"
<span class="sd"> 0.5</span>

<span class="sd"> &gt;&gt;&gt; # (multiclass)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import Accuracy</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import Accuracy</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 2, 2]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0, 0, 2, 2, 1]</span>
<span class="sd"> &gt;&gt;&gt; metric = Accuracy(task=&quot;multiclass&quot;, num_classes=3)</span>
Expand All @@ -495,7 +495,7 @@ <h1>Source code for cyclops.evaluate.metrics.accuracy</h1><div class="highlight"
<span class="sd"> array([0., 1., 0.])</span>

<span class="sd"> &gt;&gt;&gt; # (multilabel)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import Accuracy</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import Accuracy</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1, 1], [1, 0, 0]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0, 1, 0], [1, 0, 1]]</span>
<span class="sd"> &gt;&gt;&gt; metric = Accuracy(task=&quot;multilabel&quot;, num_labels=3)</span>
Expand Down
12 changes: 6 additions & 6 deletions api/_modules/cyclops/evaluate/metrics/auroc.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ <h1>Source code for cyclops.evaluate.metrics.auroc</h1><div class="highlight"><p

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import BinaryAUROC</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import BinaryAUROC</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 0, 1, 1]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0.1, 0.4, 0.35, 0.8]</span>
<span class="sd"> &gt;&gt;&gt; metric = BinaryAUROC()</span>
Expand Down Expand Up @@ -284,7 +284,7 @@ <h1>Source code for cyclops.evaluate.metrics.auroc</h1><div class="highlight"><p

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MulticlassAUROC</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MulticlassAUROC</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.9, 0.05, 0.05], [0.05, 0.89, 0.06],</span>
<span class="sd"> ... [0.05, 0.01, 0.94], [0.9, 0.05, 0.05]]</span>
Expand Down Expand Up @@ -367,7 +367,7 @@ <h1>Source code for cyclops.evaluate.metrics.auroc</h1><div class="highlight"><p

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MultilabelAUROC</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MultilabelAUROC</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1], [1, 1], [1, 0]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.9, 0.05], [0.05, 0.89], [0.05, 0.01]]</span>
<span class="sd"> &gt;&gt;&gt; metric = MultilabelAUROC(num_labels=2)</span>
Expand Down Expand Up @@ -457,7 +457,7 @@ <h1>Source code for cyclops.evaluate.metrics.auroc</h1><div class="highlight"><p
<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; # (binary)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import BinaryAUROC</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import BinaryAUROC</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 0, 1, 1]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0.1, 0.4, 0.35, 0.8]</span>
<span class="sd"> &gt;&gt;&gt; metric = BinaryAUROC()</span>
Expand All @@ -472,7 +472,7 @@ <h1>Source code for cyclops.evaluate.metrics.auroc</h1><div class="highlight"><p
<span class="sd"> 0.6111111111111112</span>

<span class="sd"> &gt;&gt;&gt; # (multiclass)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MulticlassAUROC</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MulticlassAUROC</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.9, 0.05, 0.05], [0.05, 0.89, 0.06],</span>
<span class="sd"> ... [0.05, 0.01, 0.94], [0.9, 0.05, 0.05]]</span>
Expand All @@ -489,7 +489,7 @@ <h1>Source code for cyclops.evaluate.metrics.auroc</h1><div class="highlight"><p
<span class="sd"> array([0.5 , 0.22222222, 0. ])</span>

<span class="sd"> &gt;&gt;&gt; # (multilabel)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MultilabelAUROC</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MultilabelAUROC</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1], [1, 1], [1, 0]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.9, 0.05], [0.05, 0.89], [0.05, 0.01]]</span>
<span class="sd"> &gt;&gt;&gt; metric = MultilabelAUROC(num_labels=2)</span>
Expand Down
24 changes: 12 additions & 12 deletions api/_modules/cyclops/evaluate/metrics/f_beta.html
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import BinaryFbetaScore</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import BinaryFbetaScore</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 1, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0, 1, 0, 0]</span>
<span class="sd"> &gt;&gt;&gt; metric = BinaryFbetaScore(beta=0.5)</span>
Expand Down Expand Up @@ -288,7 +288,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MulticlassFbetaScore</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MulticlassFbetaScore</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0, 2, 1, 0]</span>
<span class="sd"> &gt;&gt;&gt; metric = MulticlassFbetaScore(beta=0.5, num_classes=3)</span>
Expand Down Expand Up @@ -388,7 +388,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MultilabelFbetaScore</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MultilabelFbetaScore</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1], [1, 1]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.9], [0.8, 0.2]]</span>
<span class="sd"> &gt;&gt;&gt; metric = MultilabelFbetaScore(beta=0.5, num_labels=2)</span>
Expand Down Expand Up @@ -493,7 +493,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><
<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; # (binary)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import FbetaScore</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import FbetaScore</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 1, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0.1, 0.8, 0.4, 0.3]</span>
<span class="sd"> &gt;&gt;&gt; metric = FbetaScore(beta=0.5, task=&quot;binary&quot;)</span>
Expand All @@ -508,7 +508,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><
<span class="sd"> 0.9090909090909091</span>

<span class="sd"> &gt;&gt;&gt; # (multiclass)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import FbetaScore</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import FbetaScore</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.8, 0.1], [0.1, 0.1, 0.8], [0.1, 0.1, 0.8], [0.8, 0.1, 0.1]]</span>
<span class="sd"> &gt;&gt;&gt; metric = FbetaScore(beta=0.5, task=&quot;multiclass&quot;, num_classes=3)</span>
Expand All @@ -524,7 +524,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><
<span class="sd"> array([0.83333333, 0.5 , 0. ])</span>

<span class="sd"> &gt;&gt;&gt; # (multilabel)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import FbetaScore</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import FbetaScore</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1], [1, 1]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.9], [0.8, 0.2]]</span>
<span class="sd"> &gt;&gt;&gt; metric = FbetaScore(beta=0.5, task=&quot;multilabel&quot;, num_labels=2)</span>
Expand Down Expand Up @@ -609,7 +609,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import BinaryF1Score</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import BinaryF1Score</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 1, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0.1, 0.8, 0.4, 0.3]</span>
<span class="sd"> &gt;&gt;&gt; metric = BinaryF1Score()</span>
Expand Down Expand Up @@ -677,7 +677,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MulticlassF1Score</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MulticlassF1Score</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.6, 0.3], [0.05, 0.95, 0], [0.1, 0.8, 0.1], [0.95, 0.05, 0]]</span>
<span class="sd"> &gt;&gt;&gt; metric = MulticlassF1Score(num_classes=3)</span>
Expand Down Expand Up @@ -749,7 +749,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><

<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import MultilabelF1Score</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import MultilabelF1Score</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1, 1], [1, 0, 0]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.9, 0.8], [0.05, 0.1, 0.2]]</span>
<span class="sd"> &gt;&gt;&gt; metric = MultilabelF1Score(num_labels=3)</span>
Expand Down Expand Up @@ -834,7 +834,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><
<span class="sd"> Examples</span>
<span class="sd"> --------</span>
<span class="sd"> &gt;&gt;&gt; # (binary)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import F1Score</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import F1Score</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 1, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [0.1, 0.8, 0.4, 0.3]</span>
<span class="sd"> &gt;&gt;&gt; metric = F1Score(task=&quot;binary&quot;)</span>
Expand All @@ -849,7 +849,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><
<span class="sd"> 0.8</span>

<span class="sd"> &gt;&gt;&gt; # (multiclass)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import F1Score</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import F1Score</span>
<span class="sd"> &gt;&gt;&gt; target = [0, 1, 2, 0]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.6, 0.3], [0.05, 0.95, 0], [0.1, 0.8, 0.1], [0.95, 0.05, 0]]</span>
<span class="sd"> &gt;&gt;&gt; metric = F1Score(task=&quot;multiclass&quot;, num_classes=3)</span>
Expand All @@ -865,7 +865,7 @@ <h1>Source code for cyclops.evaluate.metrics.f_beta</h1><div class="highlight"><
<span class="sd"> array([0. , 0.85714286, 0. ])</span>

<span class="sd"> &gt;&gt;&gt; # (multilabel)</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluation.metrics import F1Score</span>
<span class="sd"> &gt;&gt;&gt; from cyclops.evaluate.metrics import F1Score</span>
<span class="sd"> &gt;&gt;&gt; target = [[0, 1, 1], [1, 0, 0]]</span>
<span class="sd"> &gt;&gt;&gt; preds = [[0.1, 0.9, 0.8], [0.05, 0.1, 0.2]]</span>
<span class="sd"> &gt;&gt;&gt; metric = F1Score(task=&quot;multilabel&quot;, num_labels=3)</span>
Expand Down
Loading

0 comments on commit b6f2d43

Please sign in to comment.