dssg / triage

General Purpose Risk Modeling and Prediction Toolkit for Policy and Social Good Problems
Other
181 stars 61 forks source link

Update colab triage for triage 5.2 #910

Open shaycrk opened 1 year ago

shaycrk commented 1 year ago

Unfortunately, colab uses python 3.7 by default so pip install triage installs triage 5.1.1, the latest version to support this version of python. To use newer triage versions here, we'll need:

If getting the colab runtime to use a newer python proves too troublesome, another option might be to actually store the config.yaml, database.yaml, and run.py to disk and run them with a newer python at the commandline via the first method (I believe the stdout logs should still show up in the notebook). Then, interrogating the results in the database can still be done with the python 3.7 kernel. This might get messy, however, with the audition piece.

Since it's meant as an easy introduction, we may also want to take advantage of some of the improvements to the config in newer versions of triage, such as only needing to specify the label query, to simplify the flow of the tutorial as well.