You are browsing as a guest. Sign up (or log in) to start making projects!

Kazamir

@Kazamir

Joined June 1st, 2026

  • 25Devlogs
  • 5Projects
  • 1Ships
  • 15Votes
I am an Australian teenager with an interest in AI and science and want to use stardance as a way to improve my knowledge in these areas.
Open comments for this post

47m 37s logged

Added easy, medium and hard mode - each being UCBs but with different runtimes. Also updated the buttons as they were outdated code

0

Loading discussion…

0
2
Open comments for this post

1h 55m 58s logged

UCB - Upper Confidence Bound

The UCB algorithm is an algorithm that I created to play connect 4.

How it works

The philosphy of UCB is doing random simulations of the game, and the move with the highest winrate in the random simulations is the best move.

The problem UCB solves is given a set amount of simulations - called rollouts, how do you allocate the amount of rollouts each move gets? You want to spend more time on promising moves, and less on unpromising moves, but you still need to try these unpromising moves because they may be good, but have low winrates just due to random chance. This is decided by the UCB rule:

UCBᵢ = avg(Xᵢ) + √( 2 ln(T) / nᵢ )

Which is the average winrate of the move i plus an optimism score. The more times you play a move, the chance that it is secretely a good move decreases. This ensures that you spend more time on good moves (high average) but also spend some times on worse moves that may turn out to be better by investing more rollouts on them.

Implementation

I implemented this into my connect 4 game I made, and allocated rollouts to 1000, so it makes 1000 random simulations to choose each move, and it kept on beating me. I had to reduce rollouts to 250 so I had a chance of winning.

0

Loading discussion…

0
1
Open comments for this post

1h 27m 32s logged

Life Like Cellular Automata

Cellular Automata is a discrete grid based system which consists of cells that update themselves following a certain ruleset over discrete time chunks called generations. Conway’s game of life is the most famous one of these, but is only 1 subset of a larger set of life-like cellular automata.

In Conways game of life, each cell can either be one of 2 states, dead or alive. Its’s updating ruleset is:

  • A node is ‘born’ if it has 3 neighbours, changing state from dead to alive
  • A node survives if it is alive and has either 2 or 3 neighbours, else it reverts back to a dead state

This ruleset can be written in the form of B3/S23 and is just one of many other rules that can exist in life-like Cellular Automata.

In this update, I have added boxes that you can turn on or off to customise the cellular automa to any rule you want.
My next goals are to:

  • Make the grid editable so you can create your own systems
  • Make a rewind button so you can see how different structures are formed
  • Create a slider to control simulation speed
0

Loading discussion…

0
2
Open comments for this post

39m 16s logged

Now that I had a drawable grid, i converted that grid to a pytorch tensor, that I plugged into my MNIST classifer that I made 2 devlogs ago, to create an AI number guesser! Honestly, while it does ocassionally slip up and make a few mistakes, especially confusing 7s and 2s and 6s and 0s, it is amazing!

0

Loading discussion…

0
2
Open comments for this post

29m 45s logged

Added a Mouse scroll to make the zoom mechanic more intuitave - and its much less laggy than a slider. Programming a scroll wheel was both easier and harder than I expected, but I have now added a new tool to my pygame toolkit.

0

Loading discussion…

0
3
Open comments for this post

1h 26m logged

I followed learn pytorch to make my first Convolutional Neural Network in pytorch! I have it sucessfully trained on the black and white mnist fashion dataset so it can identify fashion objects. Now I think I have enough foundations to build my final classification project.

0

Loading discussion…

0
2
Open comments for this post

2h 6m 30s logged

I tried to make a classifier on skit-learns moon dataset that creates 2 classes of blobs in a cresent shape. Using my knowledge on how to create a binary classifer with ReLu and Binary cross entropy loss, I created a classifier that sucessful ‘solved’ the toy dataset. After completing this, I began to work on learnpytorch’s Computer vision module. My vision is to use my knowledge of computer vision and classification to build an interactive CNN visualiser.

0

Loading discussion…

0
2
Ship

In my first ship, I created a linear regression simulator where you put points on a graph and can see the line of best fit being discovered. This was my first ship, and I have learnt a lot of things, from normalising values in pytorch to how to use create a pygame exe and how to use Github. I hope you can try out my simple project and see the fascinating power of machine learning.

  • 5 devlogs
  • 14h
Try project → See source code →
Open comments for this post

2h 39m 59s logged

Finally finished my project. I expected this project to only take like 5 hours max, but it took more than double that! I have learnt a lot about pygame and pytorch in this project. My final additons were a databox that showed ML metrics like epochs, and added a formula to the line on the graph.

0

Loading discussion…

0
2
Loading more…

Followers

Loading…