MilesCranmer commited on
Commit
c3271ea
1 Parent(s): 90192ff

Sort papers by date in python file

Browse files
Files changed (2) hide show
  1. docs/generate_papers.py +5 -1
  2. docs/papers_header.md +2 -0
docs/generate_papers.py CHANGED
@@ -12,6 +12,7 @@ papers:
12
  link: https://papers.ssrn.com/abstract=4053795
13
  abstract: Machine learning (ML) is becoming more and more important throughout the mathematical and theoretical sciences. In this work we apply modern ML methods to gravity models of pairwise interactions in international economics. We explain the formulation of graphical neural networks (GNNs), models for graph-structured data that respect the properties of exchangeability and locality. GNNs are a natural and theoretically appealing class of models for international trade, which we demonstrate empirically by fitting them to a large panel of annual-frequency country-level data. We then use a symbolic regression algorithm to turn our fits into interpretable models with performance comparable to state of the art hand-crafted models motivated by economic theory. The resulting symbolic models contain objects resembling market access functions, which were developed in modern structural literature, but in our analysis arise ab initio without being explicitly postulated. Along the way, we also produce several model-consistent and model-agnostic ML-based measures of bilateral trade accessibility.
14
  image: economic_theory_gravity.png
 
15
 
16
  # Corresponding example papers.md:
17
 
@@ -32,7 +33,6 @@ Sergiy Verstyuk<sup>1</sup>, Michael R. Douglas.<sup>1</sup><br><sup>1</sup>Harv
32
  """
33
 
34
  import yaml
35
- # Import dedent:
36
  from textwrap import dedent
37
 
38
  data_file = "papers.yml"
@@ -50,6 +50,10 @@ with open(papers_header, "r") as stream:
50
  with open(output_file, "w") as f:
51
  f.write(header)
52
 
 
 
 
 
53
  for paper in papers:
54
  title = paper["title"]
55
  authors = (
 
12
  link: https://papers.ssrn.com/abstract=4053795
13
  abstract: Machine learning (ML) is becoming more and more important throughout the mathematical and theoretical sciences. In this work we apply modern ML methods to gravity models of pairwise interactions in international economics. We explain the formulation of graphical neural networks (GNNs), models for graph-structured data that respect the properties of exchangeability and locality. GNNs are a natural and theoretically appealing class of models for international trade, which we demonstrate empirically by fitting them to a large panel of annual-frequency country-level data. We then use a symbolic regression algorithm to turn our fits into interpretable models with performance comparable to state of the art hand-crafted models motivated by economic theory. The resulting symbolic models contain objects resembling market access functions, which were developed in modern structural literature, but in our analysis arise ab initio without being explicitly postulated. Along the way, we also produce several model-consistent and model-agnostic ML-based measures of bilateral trade accessibility.
14
  image: economic_theory_gravity.png
15
+ date: 2022-03-15
16
 
17
  # Corresponding example papers.md:
18
 
 
33
  """
34
 
35
  import yaml
 
36
  from textwrap import dedent
37
 
38
  data_file = "papers.yml"
 
50
  with open(output_file, "w") as f:
51
  f.write(header)
52
 
53
+ # First, we sort the papers by date.
54
+ # This is in the format of "2022-03-15"
55
+ papers = sorted(papers, key=lambda paper: paper["date"], reverse=True)
56
+
57
  for paper in papers:
58
  title = paper["title"]
59
  authors = (
docs/papers_header.md CHANGED
@@ -1,6 +1,8 @@
1
  # PySR Showcase
2
  Below is a showcase of papers which have used PySR to discover
3
  or rediscover a symbolic model.
 
 
4
 
5
  If you have used PySR in your research,
6
  please submit a pull request to add your paper to [this file](https://github.com/MilesCranmer/PySR/blob/master/docs/papers.yml).
 
1
  # PySR Showcase
2
  Below is a showcase of papers which have used PySR to discover
3
  or rediscover a symbolic model.
4
+ These are sorted by the date of release, with most recent papers at the top.
5
+
6
 
7
  If you have used PySR in your research,
8
  please submit a pull request to add your paper to [this file](https://github.com/MilesCranmer/PySR/blob/master/docs/papers.yml).