Login
You're viewing the code4lib.social public feed.
  • Oct 6, 2025, 4:38 AM

    Update: there were a number of typos in the source, presumably introduced by the author's use of ChatGPT to process source code from photos of the Apple II screen. (Reminds me of the days when programs would be published in magazines, and have typos as well.) I've found enough of them now to get the program to converge, but the low accuracy makes me think there are still more bugs to shake out.

    #AppleII #retrocomputing

    An Apple II BASIC program running in emulation, from the source posted at https://mdcramer.github.io/apple-2-blog/k-means/. A set of 10 samples has been plotted and the k-means convergence has determined a decision boundary which is suspiciously too far to the left. The program says ACCURACY = 50%.
    💬 1🔄 0⭐ 3

Replies

  • Oct 6, 2025, 1:54 PM

    @_the_cloud Typing in programs from magazines, finding my typos, finding the typos the magazine introduced, and finally, fixing problems I saw in the code — it was a great way to learn to debug and write better code.

    💬 0🔄 0⭐ 0