यह पृष्ठ मशीन द्वारा अंग्रेज़ी से हिंदी में अनुवादित किया गया था। अंग्रेज़ी मूल देखें

Active InferAnt Stream #009.1

How to Accelerate? Implementing & Meta-Analyzing an Active Inference Mountain Car in RxInfer.jl

Dec 26, 2024 · with Daniel Friedman

▶ Watch on YouTube ↗

Session details

Date: Dec 26, 2024

Series: Active InferAnt Stream #009.1

Guests: Daniel Friedman

Transcript

AI-generated transcript excerpt

The full transcript is available on GitHub. This excerpt is generated by automated speech recognition and may contain errors.

All right, it's December 26, 2024. This is Daniel Friedman. It's Active Inference Stream 009.1. How to Accelerate Active Inference Mountain Car in rxinfer.jl. And hope everyone is having a good end of year season. Looking forward to different updates, different live chats, see what happens along the way. I'll start the stream off with making a GitHub push. All right, while that's happening, I'm going to head over into Cursor. This is what we're going to be exploring, covering today, which is modifying an rxinfer package example made by the developers. And moving it from a notebook format into a script format, adding some more visualizations and analyses, and then doing a setup script, hopefully to make it easier to get it going on your computer, and meta-analysis. And right now there's a big meta-analysis happening, but we'll look at some past runs that finished just a few seconds ago. Okay, so check the GitHub. This is based on the current version 3.8 of reactivebase slash rxinfer.jl. And just to keep it separate and clear, made a fork or a branch from the exact version today. And then put all of the work that I'm about to go into, into this examples folder slash mountain car. So it's a branch on rxinfer.jl. And in the video description are all the links. Okay. So GitHub push worked. Now to start another standalone and meta-analysis. So here's where I've gotten to after many speed bumps and fun along the way. This is in cursor. Right-click, open an integrated terminal. First, if you haven't, run the script Julia setup.jl. Probably also other settings will need to be bumped up against on different settings. Also, I brought it up, synced it to the current version just after building part of it. So there's probably a lot of inefficiencies. It's, of course, very cursor slash Claude-esque. So there could be a lot of redundancy, a lot of ways to go. But I'm going to run the setup script. Then we'll look at the standalone and the meta-analysis. Okay. So this is, as mentioned, branches off of the rxinfer example active inference mountain car. Okay. Let's just briefly look at setup. See what's happening while it's finishing this. There could probably be a lot of sorting of this. Different packages are installed. The rxinfer keystone package is installed from the local GitHub repo. So probably it would take some other different way to export functions in a different way. Calls, probably some set of automatic dependency installations. Pre-existing, explicit calls that I typed in. Like most recently, this stats plots. So definitely figure out what else could be changed to get this working on your own computer. But at the end, I hope it accurately says, yes, rxinfer's functional. Some of the core packages that we need are loaded. Here's the Julia version project path rxinfer path. And then how to run the scripts. And that can be probably developed. Okay. So that's the setup. Then there's the standalone Julia. Mountain car. Standalone. This one has today's date and a file name. Just to give it a static version as a single file snapshot. But the meta analysis is much more scattered across methods scripts. So the single mountain car standalone has the dates. Okay. Okay. So let's look before we go into the code. How they set up and characterize the mountain car problem. Okay. So it's written in this sort of notebook, blog post, multimedia style. Active inference mountain car. This is from the rxinfer jail documentation. A group of friends is going to a camping site that is located on the biggest mountain in the Netherlands. They use an electric car for the trip. When they are almost there, the car's battery is almost empty and is therefore limiting the engine force. Unfortunately, they are in the middle of a valley and don't have enough power to reach the camping site. Night is falling. And they still need to reach the top of the mountain. As rescuers, let us develop an active inference AI agent that can get them up the hill with limited…