Skip to content

Commit

Permalink
Better readme image
Browse files Browse the repository at this point in the history
  • Loading branch information
LasseBlaauwbroek committed Oct 26, 2023
1 parent 8f61e3d commit ad011ec
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Tactician's API: A graph- and text-based machine learning interface for Coq

![Tactician's web of large-scale formal knowledge](assets/web.jpg)
![Tactician's web of large-scale formal knowledge](assets/web.png)
Tactician's API provides external machine learning agents with the data
collected by [Tactician](https://coq-tactician.github.io) from the [Coq Proof
Assistant](https://coq.inria.fr). It is able to extract large-scale datasets
Expand Down
Binary file removed assets/web.jpg
Binary file not shown.
Binary file added assets/web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions pytact/scripts/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def init_graph():
g.attr('edge', color="#0000ff10")
g.attr(overlap='prism', outputorder='edgesfirst')
g.attr(ratio='fill', size="20,10")
g.attr(bgcolor="transparent")
return g

def make_color(n, alpha):
Expand Down Expand Up @@ -107,8 +108,8 @@ def main():
target_graph = data.local_to_global(gid, target.dep_index)
targetid = get_node_id(target_graph, target.node_index)
distance = abs(positions[sourceid]-positions[targetid])
distance_norm = distance / maxdist
g.edge(sourceid, targetid, color=make_color(distance_norm, 0.05))
distance_norm = distance / maxdist * 2
g.edge(sourceid, targetid, color=make_color(distance_norm, 0.2))
# print(f"{sourceid},{targetid}")
g.render(filename='web', format='svg', view=False, cleanup=False)

Expand Down

0 comments on commit ad011ec

Please sign in to comment.