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/source/tutorials/annotation_function.rst
+2-2
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@ PyReason Annotation Functions
2
2
=============================
3
3
4
4
In this tutorial, we will look at use annotation functions in PyReason.
5
-
Read more about annotation functions `here <https://pyreason--60.org.readthedocs.build/en/60/user_guide/3_pyreason_rules.html#annotation-functions>`_.
5
+
Read more about annotation functions `here <https://pyreason.readthedocs.io/en/latest/user_guide/3_pyreason_rules.html#annotation-functions>`_.
6
6
7
7
.. note::
8
-
Find the full, excecutable code for both annotation functions `here <https://github.com/lab-v2/pyreason/blob/main/examples/annotation_function_ex.py>`_
8
+
Find the full, executable code for both annotation functions `here <https://github.com/lab-v2/pyreason/blob/main/examples/annotation_function_ex.py>`_
Copy file name to clipboardExpand all lines: docs/source/user_guide/6_pyreason_output.rst
+10-10
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Basic Tutorial Example
14
14
To see ``filter_and_sort_nodes`` in action we will look at the example usage in PyReasons Basic Tutorial.
15
15
16
16
.. note::
17
-
Find the full, explained tutorial here `here <https://pyreason--60.org.readthedocs.build/en/60/tutorials/basic_tutorial.html>`_
17
+
Find the full, explained tutorial here `here <https://pyreason.readthedocs.io/en/latest/tutorials/basic_tutorial.html>`_
18
18
19
19
20
20
The tutorial take in a basic graph of people and their pets, then adds a Rule and a Fact.
@@ -77,7 +77,7 @@ Infer Edges Example
77
77
To see ``filter_and_sort_edges`` in action, we will look at the example usage in PyReason's Infer Edges Tutorial.
78
78
79
79
.. note::
80
-
Find the full, explained tutorial here `here <https://pyreason--60.org.readthedocs.build/en/60/tutorials/infer_edges.html>`_.
80
+
Find the full, explained tutorial here `here <https://pyreason.readthedocs.io/en/latest/tutorials/infer_edges.html>`_.
81
81
82
82
The tutorial takes in a basic graph of airports and connections, then infers an edges between two unconnected airports.
83
83
@@ -143,7 +143,7 @@ Advanced Tutorial Example
143
143
To see ``get_rule_trace`` in action we will look at the example usage in PyReasons Advanced Tutorial.
144
144
145
145
.. note::
146
-
Find the full, explained tutorial here `here <https://pyreason--60.org.readthedocs.build/en/60/tutorials/advanced_tutorial.html>`_
146
+
Find the full, explained tutorial here `here https://pyreason.readthedocs.io/en/latest/tutorials/advanced_tutorial.html>`_
147
147
148
148
149
149
The tutorial takes in a graph of we have customers, cars, pets and their relationships. We first have customer_details followed by car_details , pet_details , travel_details.
@@ -160,7 +160,7 @@ Expected Output
160
160
^^^^^^^^^^^^^^^^
161
161
Using ``get_rule_trace``, the expected output of ``nodes_trace`` and ``edges_trace`` is:
162
162
163
-
Click `here <https://github.com/lab-v2/pyreason/blob/docs/examples/csv%20outputs/advanced_rule_trace_nodes_20241119-012153.csv>`_ for the full table.
163
+
Click `here <https://github.com/lab-v2/pyreason/blob/main/examples/csv%20outputs/advanced_rule_trace_nodes_20241119-012153.csv>`_ for the full table.
Click `here <https://github.com/lab-v2/pyreason/blob/docs/examples/csv%20outputs/advanced_rule_trace_edges_20241119-012153.csv>`_ for the full table.
204
+
Click `here <https://github.com/lab-v2/pyreason/blob/main/examples/csv%20outputs/advanced_rule_trace_edges_20241119-012153.csv>`_ for the full table.
205
205
206
206
207
207
.. code:: text
@@ -234,7 +234,7 @@ Infer Edges Tutorial Example
234
234
To see ``save_rule_trace`` in action, we will look at an example usage in PyReason's Infer Edges Tutorial.
235
235
236
236
.. note::
237
-
Find the full, explained tutorial here `here <https://pyreason--60.org.readthedocs.build/en/60/tutorials/infer_edges.html#pyreason-infer-edges>`_.
237
+
Find the full, explained tutorial here `here <https://pyreason.readthedocs.io/en/latest/tutorials/infer_edges.html>`_.
238
238
239
239
This tutorial takes a graph with airports and their connections.
240
240
@@ -253,7 +253,7 @@ Using ``save_rule_trace``, the expected output is:
253
253
254
254
The nodes trace will be saved as a CSV file in the specified folder. It will contain the time, the fixed-point operation, the node, and the clause information that led to the change in each timestep. Here's an example snippet of how the data will look when saved:
255
255
256
-
Click `here <https://github.com/lab-v2/pyreason/blob/docs/examples/csv%20outputs/infer_edges_rule_trace_nodes_20241119-140955.csv>`_ for the full table.
256
+
Click `here <https://github.com/lab-v2/pyreason/blob/main/examples/csv%20outputs/infer_edges_rule_trace_nodes_20241119-140955.csv>`_ for the full table.
The edges trace will be saved as another CSV file. It will contain the time, the edge relationship changes, and the clauses that were involved. Here’s a snippet of how the edge trace will look when saved:
279
279
280
-
Click `here <https://github.com/lab-v2/pyreason/blob/docs/examples/csv%20outputs/infer_edges_rule_trace_edges_20241119-140955.csv>`_ for the full table.
280
+
Click `here <https://github.com/lab-v2/pyreason/blob/main/examples/csv%20outputs/infer_edges_rule_trace_edges_20241119-140955.csv>`_ for the full table.
281
281
282
282
283
283
.. code:: text
@@ -315,7 +315,7 @@ Basic Tutorial Example
315
315
To see ``interpretation.get_dict()`` in action we will look at the example usage in PyReasons Basic Tutorial.
316
316
317
317
.. note::
318
-
Find the full, explained tutorial here `here <https://pyreason--60.org.readthedocs.build/en/60/tutorials/basic_tutorial.html>`_
318
+
Find the full, explained tutorial here `here <https://pyreason.readthedocs.io/en/latest/tutorials/basic_tutorial.html>`_
319
319
320
320
Call ``.get_dict()`` function on the interpretation, and print using ``pprint``.
321
321
@@ -373,4 +373,4 @@ Using ``.get_dict()``, the expected output is:
373
373
('Mary', 'Cat'): {}}}
374
374
375
375
376
-
``interpretation.get_dict()`` first goes through each time step, then the componenets of the graph, and finally the predicates and bounds.
376
+
``interpretation.get_dict()`` first goes through each time step, then the components of the graph, and finally the predicates and bounds.
0 commit comments