MilesCranmer commited on
Commit
ebce55f
1 Parent(s): c3dc203

Fix incorrect link to documentation in example

Browse files
Files changed (1) hide show
  1. examples/pysr_demo.ipynb +9 -4
examples/pysr_demo.ipynb CHANGED
@@ -343,7 +343,7 @@
343
  "id": "gIWt5wz5cjXE"
344
  },
345
  "source": [
346
- "`model.equations` is a Pandas DataFrame. We can exports the results in various ways:"
347
  ]
348
  },
349
  {
@@ -407,7 +407,7 @@
407
  "id": "qvgVbOoSFtQY"
408
  },
409
  "source": [
410
- "A full list of operators is given here: https://pysr.readthedocs.io/en/latest/docs/operators/,\n",
411
  "but we can also use any binary or unary operator in `julia`, or define our own as arbitrary functions.\n",
412
  "\n",
413
  "Say that we want a command to do quartic powers:\n",
@@ -717,7 +717,7 @@
717
  },
718
  "outputs": [],
719
  "source": [
720
- "best_idx = model.equations.query(f\"loss < {2 * model.equations.loss.min()}\").score.idxmax()\n",
721
  "model.sympy(best_idx)"
722
  ]
723
  },
@@ -1179,7 +1179,7 @@
1179
  "id": "S5dO61g1bDhk"
1180
  },
1181
  "source": [
1182
- "The full list of PySR parameters can be found here: https://pysr.readthedocs.io/en/latest/docs/api-documentation/"
1183
  ]
1184
  }
1185
  ],
@@ -1190,6 +1190,11 @@
1190
  "name": "pysr_demo.ipynb",
1191
  "provenance": []
1192
  },
 
 
 
 
 
1193
  "language_info": {
1194
  "codemirror_mode": {
1195
  "name": "ipython",
 
343
  "id": "gIWt5wz5cjXE"
344
  },
345
  "source": [
346
+ "`model.equations_` is a Pandas DataFrame. We can export the results in various ways:"
347
  ]
348
  },
349
  {
 
407
  "id": "qvgVbOoSFtQY"
408
  },
409
  "source": [
410
+ "A full list of operators is given here: https://astroautomata.com/PySR/#/operators,\n",
411
  "but we can also use any binary or unary operator in `julia`, or define our own as arbitrary functions.\n",
412
  "\n",
413
  "Say that we want a command to do quartic powers:\n",
 
717
  },
718
  "outputs": [],
719
  "source": [
720
+ "best_idx = model.equations_.query(f\"loss < {2 * model.equations_.loss.min()}\").score.idxmax()\n",
721
  "model.sympy(best_idx)"
722
  ]
723
  },
 
1179
  "id": "S5dO61g1bDhk"
1180
  },
1181
  "source": [
1182
+ "The full list of PySR parameters can be found here: https://astroautomata.com/PySR/#/api"
1183
  ]
1184
  }
1185
  ],
 
1190
  "name": "pysr_demo.ipynb",
1191
  "provenance": []
1192
  },
1193
+ "kernelspec": {
1194
+ "display_name": "Python (main_ipynb)",
1195
+ "language": "python",
1196
+ "name": "main_ipynb"
1197
+ },
1198
  "language_info": {
1199
  "codemirror_mode": {
1200
  "name": "ipython",