「Open to Projects」 • Dabbler • Learner • Explorer • https://xitter.cf/t.co/rMAvL5souA student • https://xitter.cf/t.co/7FBysT47M6 solver • Dabbling in Embodied AI • 自学中文 // Teaching myself Chinese

Hong Kong/Shenzhen/GBA
Joined September 2022
Doing lesson 15 of the @fastdotai course; deducing how to rearrange convolutions as a matrix product
1
1
1
7
13,624
TIL you can combine two dictionaries with the pipe operator
1
26
Early exits
Exploring generating routes for maps, and I'm gradually whipping together an animation to help me understand BFS better, inspired from @Johnowhitaker visualization in SolveIt lesson 8
21
Salman // 萨尔曼 retweeted
A recent UX pattern I've started using, I don't know if I got this from someone else, is I ask AI to allow me to highlight text in an HTML such that the highlight remains and it gets saved to a JSON file so that I can communicate with AI about the things I highlighted. I've found that it makes it a lot easier and quicker for me to get through a lot of text or data during AI-review. I haven't looked at actual numbers, but I would assume it also saves tokens.
2
5
279
idk why, but i find packing everything up into a single line super fun
13
Exploring generating routes for maps, and I'm gradually whipping together an animation to help me understand BFS better, inspired from @Johnowhitaker visualization in SolveIt lesson 8
1
1
53
it's always so cool to get a chance to put the walrus operator := into action 😄
1
25
Homogenouity in tensors means every dimension is of the same length. Homogenous: [[1,2],[3,4]] Nonhomogenous: [1,[2,3]]
26
And back to the triangle
1
If you have a cooler way, let me know!
To center this, I just have to split the padding onto either side
1
5
I can use these methods if I don't want to use whitespace to justify
1
1
Turns out, Python has built-in ways to justify text.
1
2
I don't have to use the modulo operator. I can pass an argument to the step parameter in range
1
1
Observing the output, I see that to have a centered triangle, odd rows can only be output. I can use the modulo operator for this
1
4
The next simplest step is printing a right triangle, which involves printing x+1 items
1
1
Here's my deduction for printing a centered triangle in Python. Do you know of a cooler way? 🧵/
1
28
Repeat 5 times to get a grid
1
1
A 5x5 grid has 5 rows so I'll work with rows. The row will have 5 elements.
1
2