anthe.sevenants

Softmax for CASIO calculators

2022-01-30

This is a simple program written on my Casio Graph 35+ which allows you to softmax a value given a specific list of values. To use it, follow these instructions:

  1. In the STAT option of your calculator, enter the inference output scores in a list. The order is not important, but they should be all in the same list. Remember the index of that list (e.g. "List 2").

    Input of the output scores in List 2

  2. Open PRGM and run the SOFTMAX program (linked above).

  3. Enter the index of the list which holds your output scores (e.g. "2"). Press EXE.

  4. Enter the score you want to softmax. This is one of the scores you entered in the list. Press EXE.

    Input of the required values

  5. The program will output the probability for the class associated with that score.

    Output of the softmax program

If you want to compute the probability of a different class, run the program again with a different score. You don't need to enter all the scores again.

Note: the program uses List 26 under the hood to compute the denominator values for the softmax. Make sure you don't actually have data you want to keep in this list, because the program will overwrite it.