69 karma · joined Aug 7, 2024 (2y ago) · 20 submissions
comment 1mo ago · link · parent
2.
My First Language Front End with MLIR(whereisalan.dev ↗)
3 points · by alankarmisra · 2mo ago · discuss
comment 1y ago · link · parent
comment 1y ago · link · parent
But I will add, there is no right way to do things in life in general. Experiment, and do what works for you.
comment 1y ago · link · parent
That said, for something like this, I’d probably get more out of simply finding an existing implementation on github or the like and downloading that.
When it comes to specialized and narrow domains like Space Invaders, the training set is likely to be extremely small and the model's vector space will have limited room to generalize. You'll get code that is more or less identical to the original source and you also have to wait for it to 'type' the code and the value add seems very low. I would rather ask it to point me to known Space Invaders implementations in language X on github (or search there).
Note that ChatGPT gets very nervous if I put this into GPT to clean up the grammar. It wants very badly for me to stress that LLMs don't memorize and overfitting is very unlikely (I believe neither).
comment 1y ago · link · parent
comment 1y ago · link · parent
Edit: basic grammar.
comment 1y ago · link · parent
comment 1y ago · link · parent
So when would you use symbolic programming? To generate quality data for the neural network. For example, maybe the neural net reports it read the speed limit to be 1000 km/h on a sign because of someone's shenanigans. A symbolic programming aid which knows potential legal limits will flag this data as potentially corrupt and pass it back to the network as such allowing the neural network to take more sensible decisions.
comment 1y ago · link · parent
comment 1y ago · link · parent
A neural network (PyTorch) detects objects and actions in the image, recognizing "Jim" and "eating a burger" with a confidence score.
A symbolic reasoning system (Scallop) takes this detection along with past data (e.g., "Jim ate burgers 5 times last month") and applies logical rules like:
likes(X, Food) :- frequently_eats(X, Food).
frequently_eats(Jim, burgers) if Jim ate burgers > 3 times recently.
The system combines the image-based probability with past symbolic facts to infer: "Jim likely likes burgers" (e.g., 85% confidence).This allows for both visual perception and logical inference in decision-making.
comment 1y ago · link · parent
comment 2y ago · link · parent