Skip to content

Commit

Permalink
deploy: 8da02d1
Browse files Browse the repository at this point in the history
  • Loading branch information
sshivam95 committed Mar 20, 2024
1 parent 6b2d520 commit 34730a2
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 24 deletions.
6 changes: 2 additions & 4 deletions _modules/dicee/models/quaternion.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ <h1>Source code for dicee.models.quaternion</h1><div class="highlight"><pre>

<span class="sd"> Notes</span>
<span class="sd"> -----</span>
<span class="sd"> The function assumes that the input quaternions have unit norm. </span>
<span class="sd"> It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.</span>
<span class="sd"> The function assumes that the input quaternions have unit norm. It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="p">(</span>
<span class="n">a_h</span><span class="p">,</span>
Expand Down Expand Up @@ -471,8 +470,7 @@ <h1>Source code for dicee.models.quaternion</h1><div class="highlight"><pre>
<span class="sd"> Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.</span>

<span class="sd"> Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples</span>
<span class="sd"> formed with these head entities and relations against a subset of entities, i.e., </span>
<span class="sd"> [score(h,r,x)|x \in Entities] =&gt; [0.0,0.1,...,0.8], shape=&gt; (1, |Entities|). TODO: Add mathematical format for sphinx.</span>
<span class="sd"> formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x \in Entities] =&gt; [0.0,0.1,...,0.8], shape=&gt; (1, |Entities|). TODO: Add mathematical format for sphinx.</span>
<span class="sd"> The subset of entities is specified by the `target_entity_idx`, which is an integer index representing a specific entity.</span>
<span class="sd"> Given a batch of head entities and relations =&gt; shape (size of batch,| Entities|).</span>

Expand Down
3 changes: 1 addition & 2 deletions _sources/autoapi/dicee/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2358,8 +2358,7 @@ Attributes
Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.
Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples
formed with these head entities and relations against a subset of entities, i.e.,
[score(h,r,x)|x \in Entities] => [0.0,0.1,...,0.8], shape=> (1, |Entities|). TODO: Add mathematical format for sphinx.
formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x \in Entities] => [0.0,0.1,...,0.8], shape=> (1, |Entities|). TODO: Add mathematical format for sphinx.
The subset of entities is specified by the `target_entity_idx`, which is an integer index representing a specific entity.
Given a batch of head entities and relations => shape (size of batch,| Entities|).
Expand Down
6 changes: 2 additions & 4 deletions _sources/autoapi/dicee/models/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1818,8 +1818,7 @@ Functions

.. rubric:: Notes

The function assumes that the input quaternions have unit norm.
It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.
The function assumes that the input quaternions have unit norm. It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.


.. py:class:: QMult(args: dict)
Expand Down Expand Up @@ -1996,8 +1995,7 @@ Functions
Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.

Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples
formed with these head entities and relations against a subset of entities, i.e.,
[score(h,r,x)|x \in Entities] => [0.0,0.1,...,0.8], shape=> (1, |Entities|). TODO: Add mathematical format for sphinx.
formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x \in Entities] => [0.0,0.1,...,0.8], shape=> (1, |Entities|). TODO: Add mathematical format for sphinx.
The subset of entities is specified by the `target_entity_idx`, which is an integer index representing a specific entity.
Given a batch of head entities and relations => shape (size of batch,| Entities|).

Expand Down
6 changes: 2 additions & 4 deletions _sources/autoapi/dicee/models/quaternion/index.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ Functions

.. rubric:: Notes

The function assumes that the input quaternions have unit norm.
It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.
The function assumes that the input quaternions have unit norm. It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.


.. py:class:: QMult(args: dict)
Expand Down Expand Up @@ -219,8 +218,7 @@ Functions
Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.

Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples
formed with these head entities and relations against a subset of entities, i.e.,
[score(h,r,x)|x \in Entities] => [0.0,0.1,...,0.8], shape=> (1, |Entities|). TODO: Add mathematical format for sphinx.
formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x \in Entities] => [0.0,0.1,...,0.8], shape=> (1, |Entities|). TODO: Add mathematical format for sphinx.
The subset of entities is specified by the `target_entity_idx`, which is an integer index representing a specific entity.
Given a batch of head entities and relations => shape (size of batch,| Entities|).

Expand Down
3 changes: 1 addition & 2 deletions autoapi/dicee/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3793,8 +3793,7 @@ <h4>Parameter<a class="headerlink" href="#id28" title="Link to this heading">
<span class="sig-name descname"><span class="pre">forward_k_vs_sample</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">torch.FloatTensor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target_entity_idx</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">torch.FloatTensor</span></span></span><a class="headerlink" href="#id56" title="Link to this definition"></a></dt>
<dd><p>Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.</p>
<p>Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples
formed with these head entities and relations against a subset of entities, i.e.,
[score(h,r,x)|x in Entities] =&gt; [0.0,0.1,…,0.8], shape=&gt; (1, <a href="#id109"><span class="problematic" id="id110">|Entities|</span></a>). TODO: Add mathematical format for sphinx.
formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x in Entities] =&gt; [0.0,0.1,…,0.8], shape=&gt; (1, <a href="#id109"><span class="problematic" id="id110">|Entities|</span></a>). TODO: Add mathematical format for sphinx.
The subset of entities is specified by the <cite>target_entity_idx</cite>, which is an integer index representing a specific entity.
Given a batch of head entities and relations =&gt; shape (size of batch,| Entities|).</p>
<dl class="field-list simple">
Expand Down
6 changes: 2 additions & 4 deletions autoapi/dicee/models/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2536,8 +2536,7 @@ <h3>Functions<a class="headerlink" href="#functions" title="Link to this heading
</dd>
</dl>
<p class="rubric">Notes</p>
<p>The function assumes that the input quaternions have unit norm.
It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.</p>
<p>The function assumes that the input quaternions have unit norm. It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.</p>
</dd></dl>

<dl class="py class">
Expand Down Expand Up @@ -2743,8 +2742,7 @@ <h3>Functions<a class="headerlink" href="#functions" title="Link to this heading
<span class="sig-name descname"><span class="pre">forward_k_vs_sample</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">torch.FloatTensor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target_entity_idx</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">torch.FloatTensor</span></span></span><a class="reference internal" href="../../../_modules/dicee/models/quaternion.html#QMult.forward_k_vs_sample"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#id69" title="Link to this definition"></a></dt>
<dd><p>Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.</p>
<p>Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples
formed with these head entities and relations against a subset of entities, i.e.,
[score(h,r,x)|x in Entities] =&gt; [0.0,0.1,…,0.8], shape=&gt; (1, <a href="#id175"><span class="problematic" id="id176">|Entities|</span></a>). TODO: Add mathematical format for sphinx.
formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x in Entities] =&gt; [0.0,0.1,…,0.8], shape=&gt; (1, <a href="#id175"><span class="problematic" id="id176">|Entities|</span></a>). TODO: Add mathematical format for sphinx.
The subset of entities is specified by the <cite>target_entity_idx</cite>, which is an integer index representing a specific entity.
Given a batch of head entities and relations =&gt; shape (size of batch,| Entities|).</p>
<dl class="field-list simple">
Expand Down
6 changes: 2 additions & 4 deletions autoapi/dicee/models/quaternion/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ <h3>Functions<a class="headerlink" href="#functions" title="Link to this heading
</dd>
</dl>
<p class="rubric">Notes</p>
<p>The function assumes that the input quaternions have unit norm.
It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.</p>
<p>The function assumes that the input quaternions have unit norm. It first normalizes the second quaternion to eliminate the scaling effect, and then performs the Hamilton product of the two quaternions.</p>
</dd></dl>

<dl class="py class">
Expand Down Expand Up @@ -376,8 +375,7 @@ <h3>Functions<a class="headerlink" href="#functions" title="Link to this heading
<span class="sig-name descname"><span class="pre">forward_k_vs_sample</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">torch.FloatTensor</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">target_entity_idx</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><span class="pre">torch.FloatTensor</span></span></span><a class="reference internal" href="../../../../_modules/dicee/models/quaternion.html#QMult.forward_k_vs_sample"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#id5" title="Link to this definition"></a></dt>
<dd><p>Computes scores for a batch of triples against a sampled subset of entities in a K-vs-Sample setting.</p>
<p>Given a batch of head entities and relations (h,r), this method computes the scores for all possible triples
formed with these head entities and relations against a subset of entities, i.e.,
[score(h,r,x)|x in Entities] =&gt; [0.0,0.1,…,0.8], shape=&gt; (1, <a href="#id12"><span class="problematic" id="id13">|Entities|</span></a>). TODO: Add mathematical format for sphinx.
formed with these head entities and relations against a subset of entities, i.e., [score(h,r,x)|x in Entities] =&gt; [0.0,0.1,…,0.8], shape=&gt; (1, <a href="#id12"><span class="problematic" id="id13">|Entities|</span></a>). TODO: Add mathematical format for sphinx.
The subset of entities is specified by the <cite>target_entity_idx</cite>, which is an integer index representing a specific entity.
Given a batch of head entities and relations =&gt; shape (size of batch,| Entities|).</p>
<dl class="field-list simple">
Expand Down
Binary file modified diceembeddings.pdf
Binary file not shown.

0 comments on commit 34730a2

Please sign in to comment.