- Write the algorithm out.
- Extract all the decision points.
- Pay legal interns to collect all the data, apply the data to the decision points.
- Produce a report.
- Produce a recommendation.
- The judge sentences based on that process.
And now tell the defense that they have no right to any knowledge about the above process. Not the decision points, and not what data was fed to what decision, and not even what the data was.
If you can't release that information to the defense because of trade secrets, then, it seems to me, it's not appropriate as a sentencing tool.
Of course, IANAL.