Our takes on the increasing removal of friction in good and not-so-good ways thanks to AI, a visual tour of hot air balloon accident data, and a case study of novel image recognition with the rplatipus package. Episode Links This week's curator: Colin Fay - @colinfay@fosstodon.org (Mastodon) & @colinfay.bsky.social (Bluesky) & [@_ColinFay]](https://twitter.com/_ColinFay) (X/Twitter) Friction Worth Keeping: What Keeps Us Human When AI Makes Everything Easy The Changing Shape of Hot-Air Balloon Accidents: an interactive story built with R and D3 Semantic segmentation in rplatypus and pyplatypus: what is in the box Entire issue available at rweekly.org/2026-W47 Supplement Resources Friction Worth Keeping talk recording https://www.youtube.com/watch?v=efwMAosu2-g rplatypus rebuilt: deep learning for medical images in R https://datascienceguts.com/posts/2026-11-03-rplatypus/ Supporting the show Use the contact page at https://serve.podhome.fm/custompage/r-weekly-highlights/contact to send us your feedback R-Weekly Highlights on the Podcastindex.org - You can send a boost into the show directly in the Podcast Index. First, top-up with Alby, and then head over to the R-Weekly Highlights podcast entry on the index. A new way to think about value: https://value4value.info Get in touch with us on social media Eric Nantz: @rpodcast@podcastindex.social (Mastodon), @rpodcast.bsky.social (BlueSky) and @theRcast (X/Twitter) Mike Thomas: @mike_thomas@fosstodon.org (Mastodon), @mike-thomas.bsky.social (BlueSky), and @mike_ketchbrook (X/Twitter) Music credits powered by OCRemix Relm's Weepy Loop - Final Fantasy 6 - MkVaff - https://ocremix.org/remix/OCR00178 Brinstar Bonsai Garden - Super Metroid - Red Tailed Fox - https://ocremix.org/remix/OCR01473
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
Hello friends. We are back with episode 249 of the R weekly highlights podcast. This is the weekly ish podcast where we talk about the awesome highlights and additional resources and other fun tidbits that have been shared on this week's issue of R Weekly, which you can find at rweekly.org. My name is Eric Nance, and I'm delighted that you're joining us from RevYar around the world. We are embarking on near the holiday season, kinda beginning here in The States.
So certainly for those of you that are celebrating the Thanksgiving holiday, best wishes, safe travels, and hopefully you stay healthy, which unfortunately in my household has already taken a bit of a turn for the worst, at least one of my kids, but hopefully he'll be able to navigate through that. And as well, this week was a adventurous week because I had phase one of the infamous now dental surgery, which hopefully you don't hear in my voice, but, it's been a week. But luckily, cheering me up this week is my awesome host, Mike Thomas. He has returned from his high priority work from last week. Mike, how are you doing today?
Doing pretty well, Eric. I was in rainy and windy Florida on the East Coast here in The US earlier this week, but I am back in beautiful Connecticut, which really that sentence doesn't make a whole lot of sense for this time of year. But happy to be back. You flipped them, man. Right? Wow. Yeah. That's a that's a rough go at it. Well... It's one of those conferences that I had thought about taking, the the rest of the family too to enjoy beautiful sunny Florida and a lot of other people at the conference, you know, ship their whole families down there with them thinking they'd get a nice little vacation out of it and,
flooding, you know, 20, 30, 40 mile an hour winds. Wow. A lot of hanging out in the hotel. Wow. Well, not how you draw it up. I I do remember... I don't know if you were at this one, but the deposit comp that was in Orlando, I probably should have brought the family to that because that's when they had the, Harry Potter park visit that was exclusive to just the conference attendees. So, yeah, I heard about that when I got home, but luckily for you, it didn't seem to be that. Yes. Nope.
Worked out for the best somehow. Yeah. Yeah. Well, I'm glad you're glad you made it back. It's always never the same without you. So we won't have, utter catastrophes in this episode like often happens when I do them solo. So we will not have I got so many problems. I I don't even know where to begin here. No, Moe. You're wrong. We got solutions, not problems, because we got awesome highlights to talk about today. And this week's issue has been authored or curated, I should say, by de esteemed Colin Fay, author of Golem and All Things Awesome Uses of Shiny.
It's always great to have him on our team. And as always, had tremendous help from our fellow RWQY team members and contributors like all of you around the world with your poll requests and other wonderful suggestions. And we lead off with a super fantastic write up of one of the keynotes that happened at the recent R and AI conference held by the R Consortium about a month or so ago. And who better to talk about the keynote in this post than the author of the speaker of the keynote himself,
Andrew Heiss. He, at this point, almost needs no introduction on this show because he has contributed so many amazing highlights and and sharing of his learning and his adventures as a assistant professor. He is actually now based in Qatar right now in his current work, but his keynote, which actually as of about a couple days ago, is now available on the R Consortium YouTube channel. We'll be sure to link to that in the show notes, But his talk was titled,
friction worth keeping. What keeps us human when AI makes everything easy? Man, oh, man, this is a great time to talk about this stuff because, boy, I see a lot of the things that Andrew talks about. I did listen to the first half of the talk, I'd still need to finish it, but a lot of the blog post is very much similar, material as what the keynote addresses. But I'll give you my take on things and Mike, I definitely wanna hear your thoughts on this too.
There are situations in the new era, this new world we're in, where basically AI is removing so many ways that you might perceive as friction. Maybe you need some advertising, maybe a poster for an event. Guess what? You could turn to a service like Canva with an AI prompt and get that ready to go literally in about a minute or less. You need to build that new package, the... How's that API in R?
Sure. Fire up your claw code, fire up those skills, and you got a package in probably a half hour or less. Maybe you need to help with some, you know, general questions. ChadGPT can help you maybe come up with homework, for example. I admit I sometimes do that for my kids when that school homework isn't enough. Don't tell them. But here's the thing though, when you remove that, that, you know, that ease of use that you get,
you don't have to think too much about it, right? You type a simple query, you get your result back practically instantly, maybe some iteration give or take. But is that great for everything? And like I will agree with Andrew on, I think the answer to that is no. I think there are cases where you really should go through what some may deem as friction or others might deem as learning as you're building whatever capability or solving whatever complicated issue
you're trying to solve. There is a lot of great visuals and analogies in this talk, and one that really, struck me, very clearly was this idea of the design squiggle, which basically looks like, literally in the blog post you can see this, maybe when my kid was two, scribbling on a piece of paper, and then suddenly halfway through it becomes almost a straight line, perfectly straight. What does that symbolize?
It symbolizes what can be difficult, you know, going through this first part of what you might call formative friction where you're learning on the fly, you may be failing at certain things, but eventually you can course correct or get yourself to the right path and you can complete that straight line. And it seems messy at first. It can be time consuming at first. It can be challenging at first. But in Andrew's theme here of this talk,
that's how we grow our knowledge, grow with our experience, and equip us to solve more difficult problems in the future. So there are some great quotes here from others in the tech sector or even the data science sector, one of which he calls out from Sam Altman himself, where he... Whoever this was in jest or if he was completely serious, I don't know, talking about, hey. With ChatGPT, you can create, in essence, a family podcast that connect your family calendars
and explain your kid's interests. I'm sorry. Hey. I'm a podcaster. Uh-uh. No. There's no way I'm doing a serious tweet. That was serious tweet? Yes. It was not in jest. Wow. I'm horrified more already. Oh, goodness. So, yeah, like, just rest assured you listeners out there, I don't agree with Sam. That's why you'll hear my voice. You'll hear Mike's voice. You will not hear anything different, and it won't be AI generated voices either. No, sirree, Bob. There is also... And, again, great, tweet here that he cites from David Newzerling, who has also been a contributor of our high... Our weekly highlights in the past.
But that, you know, taking what Sam said is that what we're seeing in the world now is that this this framing of what are these sometimes difficult challenging problems into, hey. Everything's got inputs and outputs from these learning, you know, functions that we have to minimize and that the whole process how we get there is not even relevant anymore. Yeah. This is a real danger, I think. And depending on which line of work you're in, you're probably seeing this already. I know I am. I know you are, Micah. I know others, whoever in data science or beyond,
are seeing this where people are just captivated by removing all the friction away. But I think, again, the great theme of this talk is that you can see the downsides of when you take this too far, but if we can just stay diligent, especially in whatever line of work you're in, and embrace the idea of still learning as humans in this doing what humans do best, which sometimes is, in my case especially,
falling a bit on my face trying to find a certain solution, but going through those struggles equips me to better handle those situations or even more complex situations later. Again, putting on my fandom of shiny here. Shiny was not easy for me in the beginning. I don't think it was for almost anybody in the R community. But once we started to see what it was capable of, once I started doing some things at the day job that kind of rung up the ladder a little bit in complexity,
going into my first major production app where I conquered the mountain of tying high performance computing execution into Shiny in one app. That was a monumental thing that took months and months of trial and error, but boy, oh, boy, did it sure teach me a lot. Now I heard from one of our HPC admins that scientists are trying to circumvent job schedulers to just send HPC jobs directly on nodes when they are really meant for one specific task. Like, this is the danger we're in. That friction is being removed, and it can cause complete chaos.
It's just absolutely bonkers. Now, again, that's an extreme example, but I think the rest of Andrew's themes here are very similar in the essence of seeing where eliminating this friction leads to some really odd results that sometimes are putting a huge burden on both software developers as well as even the general mathematics community with, you know, all hundreds of manuscripts are being submitted for journals that are, say, solving a mathematical proof that hasn't been solved in hundreds of years,
but then it could be slop, and the mathematicians don't know how they really got to that solution and they have to take time to either debunk it or approve it. This is a real inflection point. So the last thing that resonated with me is kind of what Andrew asked himself to determine what type of friction am I seeing for this problem, and is it worth going to AI right away, or kind of trying the human side of it first and then going to AI.
And the analogy he references here is like the idea of taking a forklift to lift weights for you in the weight room. Yeah, the forklift does the job, but you're not getting anything from it. You're not developing muscle from that at all. But then there are times where you do want that forklift to lift those tedious pallets in this warehouse that, yeah, you know how to do it, but you just either don't have the strength to do it or don't have the time to do it or both. So he does have a series of questions that he kind of asks himself,
what friction am I about to deal with and whether it's worth turning to AI right now, such as am I learning or improving my skill set in this task? If so, I'm gonna be like that Jim in the forklift situation. I wanna learn by, you know, going through the issue myself. Whereas maybe as some of you've already known how to do, it's repetitive. You... You're not really gaining anything from doing it again manually.
Yeah. Sure. Throw that in your Hermes agent, throw that in your Claude agent and go for it. But these are the questions that I don't know if people are really asking themselves right away when they embark on these new projects. So again, fascinating theme here. I think it is hugely relevant for all of us. So Andrew, kudos to you for an amazing keynote at the RNAi conference. And yeah, you gave me a lot to think about and a lot of ideas I could share with other colleagues that may be kind of trending towards that no friction for anything mindset. That can be a bit of a danger as I'm seeing now. Yeah, Eric. This is a fantastic
talk by Andrew and a great accompanying blog post here as well and I think, you know, both you and I and other folks on my team and I'm sure a lot of people in the community have some of these similar inherent feelings but maybe this is the best example of someone putting it into, you know, text and and someone articulating it this well as I've seen. So, I really appreciate Andrew doing that. You know, there's this this thing that I keep coming back to, kind of the spirit of some of
the paragraphs and here in this blog post, which is like, AI just generating answers? And and then we're not generating knowledge. I think he uses kind of the the word knowledge here in some really important ways in the blog post. And, you know, as it pertains to friction, he makes this disparity between what he calls incidental friction, which is, like, tedious busy work. You know, if you're copying and pasting things or fixing small errors or, you know, writing Roxygen boilerplate,
he he gives examples of how generative AI can help remove this type of friction that exists. You know, if you were to do this thing manually, you wouldn't get a lot of additional knowledge out of doing those types of menial tasks manually. But then he contrasts that with what he calls formative friction, which is kind of the struggle and this friction when you're doing things manually, but it builds skills. It builds knowledge. It builds creativity. And that formative friction, I think, is really important in skipping that and just going straight to the answers and the output,
you know, can create kind of this really hollow product underneath. You know, another great analogy that you mentioned was that that very squiggly line that represents, you know, how we may be used to pre AI, or if you're not using AI, accomplish a project from sort of start to finish. It wouldn't be just this perfectly smooth line where you just go from input to output. There would be a lot of squiggles in the the middle for you know, chasing things down and fixing things and thinking through going down one direction and deciding, nope. Actually, there's a better direction to go. And
LLMs, the... With the analogy that Andrew points out here are just a a perfectly straight line. There's no squiggle in the middle. And I think that there's opportunity for us to maybe reduce some of the squiggle that we used to have, again, with sort of the incidental friction that we would run up against or, you know, if I have to create a YAML file, you know, with a data dictionary and that data dictionary is originally in an Excel spreadsheet, I can use an LLM to just move that same information to a different format.
Or, know, if I'm trying to translate a snippet of code from one language language to another, you know, things like that that are that incidental friction may help to smooth out some of the squiggles. But I think it's really important that that line still does stay squiggly in your, at least, data science product process, in my opinion, because I think that's where the learning, that's where the knowledge comes into play. And that's really where the understanding of what it is that you've built comes into play as well. Don't want to get down too far of a tangent, but I can't help but feel like the
Microsoft three sixty five outage of last week. And I'm just going use that as an example because I think that there will be many more examples of this going forward that you can check me on this in six months and see how my prediction comes to fruition. But when we continue to use AI to develop software at... In a way that we're using these straight lines and no squiggles, especially in larger code bases. And I... You gotta imagine some product like Microsoft three sixty five is a is a giant code base. Right? There's a lot going on there. You're
gonna start to have the folks who own that lose their mental model of what is going on under the hood. And when you lose that mental model and something happens, I think it's going to become, you know, some sort of outage, a bug, an issue like that. I think it's going to become very hard and take more time to troubleshoot that than maybe it used to when the folks working on these products had a good mental model because I think LLMs just like anything else, you know, can help you tremendously, but part of its ability to be good and be accurate
is your ability to ask the right questions, right, and put the right prompts in. And if you are someone who's who's non technical or less technical or if you fired 60,000 people two weeks before your outage, right? And then maybe you don't have those that that inherent knowledge anymore or those people, resources with the the mental model. So, you know, how do you go about fixing those things, especially as the problem space becomes bigger and bigger and you're just writing more and more and more AI generated code.
So, yeah, this was a really timely blog post. The analogies are fantastic between the design squiggle and the forklift analogy that you mentioned, and I would encourage everybody to listen to the keynote, which is up on YouTube now as well as take a look at this blog post because for me, it articulates a lot of things that I have been feeling and have struggled to articulate myself to others when I'm talking about this space. And I hope Andrew's okay that I'm certainly gonna steal a couple of the analogies that he included in here, in the way that he's gone about thinking about this space.
Yeah, I literally have a team I want to talk to in the coming weeks after the Thanksgiving break about this learning because I think it needs to be said because I do see a trend in a not so great direction. And the other thing that, yeah, the Microsoft debacle definitely surfaced to me and I think others online, is that we need as a collective society still need to value the power of human knowledge in this and
reward that. Like, we should not just reward those that came up with that fancy AI generated new utility or that new process or whatever the heck you want to call it, But there will never be a time and hopefully in my lifetime that you would ever want to remove those very important people that know the ins and outs and have the skill set to navigate high priority issues that sometimes happen unexpectedly.
Yeah, I think they probably did not do themselves any favors as your... The aforementioned reductions that they had, and boy, oh, boy did this outage, I think, reveal a lot of that. So there is sometimes a danger that the cliche is, oh, we can do more with less now because of AI. Well, not at the risk of eroding what Andrew calls out in the conclusion here, our skills to architect these solutions and solve these really complicated,
challenging scientific problems. So that's why for me, I still enjoy the craft of this. Yes. Do I need to know the craft of doing that weird CSS customization in all my Shiny apps? Probably not. That's where Claw can help. But boy, oh boy, do I need to be front and center in connecting those modules together and making sure that the data flows in and out correctly and the outputs make sense. Only a human can be great at that. That's my hot take anyway. I love it, Eric.
And up next in our highlights, we're gonna have a hybrid, summary here that has some interesting visualizations and summaries of a topic that boy, oh boy, I have not explored before, but when I see in the wild some of these, big, devices that we're about to talk about, I can tell you that I would never want to be up there because I do have a fear of heights. So what the heck am I talking about here? It is, especially in the summertime and springtime, you know, around the the skies here in The US anyway,
you will often see hot air balloons up in the sky, you know, for those aren't aware, this is simply where you have this very small kind of basket looking area where, you know, a small group of people can sit in, and you just basically have a big fire, so to speak, generating heat, and the balloon captures that heat and you can just rise up in the sky, coast around, and eventually come back down. Yeah. Even though I can go on a plane without too much trouble, I... You would never see me up there. No. Not a chance. But they're great to look at from the ground anyway.
Well, unfortunately, not everything can go smoothly up there, is another reason why I probably will never be on one of those, is that there can be some accidents that happen when these things are in the air. And there is some data to show, at least, in a high level fashion, you know, tracking these events, but maybe diving into the numbers gives some additional context of the story. And that's where our next highlight comes in It is authored by Steven Ponce, who I believe his day job is in my area of the world, so to speak.
He is a senior manager in clinical analytics and centralized monitoring and a life sciences company, but apparently in his spare time he loves creating great, stories with visualizations and data driven analysis. So this highlight is entitled The Changing Shape of hot air balloon accidents. And this is, the blog post talks about more of the high level of the accompanying called data story, if you will, that he's written. That's a hybrid of
R code to process the data, massage the data, and then to use D3 to generate interactive visualizations in the web page. So, this all comes from data that's being collected officially by the NTSB, which I forget what that stands for, so I'm sure someone will fill in the blanks, but it's been collected from 1980 up until last year, looking at these different balloon events
from that time and how it relates to what is called an envelope sizes, which I guess is a synonym or a description of the size of the balloon. But, again, I'm not... I'm new to this data. He originally was inspired to create this based on a analysis he did called the Makeover Monday, series in this year where he had a chart that he basically remade, but then it only captured one specific part of the story,
which was a growing share of, the accidents in terms of the the size of this, but that the median was telling a slightly different story, and missing some key pieces of information. So he wanted to see, well, are the bigger balloons more safe than some of the smaller ones in these accident reports? But there can be some context that's missed if you don't answer this the right way. So he went into what the data has
and decide to look at what's available there and what's not available there. So through that, he could see that, yeah, there is, a change in the sizes of balloons that have been recorded in this data, that the balloons that are, you know, more commercially out there as services for people just to pay some money to go in as like a, you know, like a joyride of sorts, that can contribute to this. How many people are involved and whoever injuries occurred, which may not capture
just accidents that may have been scary, but maybe no injuries. So there is some nuance to the data as well. So the actual post is broken up into four different chapters, such as how the event recordings are changing based on the data, looking at classifying the revenue generating hot air balloon rides by their size, looking at how many people are involved in these balloons at the time of the events,
and looking at, the different kind of classifications of these balloons and then getting some variation estimates on that. So we'll have a link to the actual interactive story in the notes, which has a good hybrid of interactive bar charts, as well as the actual tables that you can look at comprising the chart... The charts. And they're very infographic friendly, like they would definitely fit in any of these blog posts you might see on something like the New York Times and whatnot,
and they do have interactive tooltips to look at these specific data points in some of these plots, such as that revenue site scene analysis, as well as other additional visualization. So it also has a GitHub repository where if you want to replicate this on your own, can certainly clone, Steven's repo and be able run that on your own infrastructure if you want to recreate the data that went into these, d three charts.
So yeah, great to see a different spin on this data looking at, yeah, accidents do tend to kind of increase, but there may be some nuances with the size of balloon and the type of events that are being recorded here. I still, Mike, to be brutally honest with you, don't really have a desire to go in a hot air balloon anytime soon, but, hey, they're good to look at nonetheless. Yeah. I mean, get a decent track record. Right? Dorothy took one all the way from Oz back to Kansas. Oh, yeah. That's a success story. Yeah. At least that's what I tell my daughter during her bedtime story. She always asks for the Wizard of Oz.
I can't remember how that one exactly ended. I know she clicked her heels which might have helped helped with the whole balloon. Couple of little bit. I don't have a lot of desire either to jump on a hot air balloon. I'm a bit of an anxious flyer as it is Yeah. And especially last week. But, yeah, it's it's a very cool dataset to be able to take a look at, for data visualization purposes. And to be honest, I haven't seen or at least known that I was looking at d three visualizations
in a little while. I know they were heavily used by a lot of great journalism shops. Know the New York Times, I think, does a lot of d three sort of interactive data visualization. And it was very cool to to see some d three plots here. I gotta imagine that d three's been around for a decent amount of time at this point. I think it's JavaScript based. So your LLM of choice would probably do a great job of building some d three visuals. And I don't know if they were employed here or not, but there's some definitely, you know, beautiful visuals
encompassed in the actual blog post that has sort of the data analysis that the blog post in our weekly this week links to. So I enjoyed exploring that a little bit, jumping into the GitHub repository as well, which is is hyperlinked in both of these blog posts to be able to take a look at the code behind it. There's some nice sort of collapsible data tables that you can expand and see sort of the data behind the visuals in the charts, that that were created by Steven here in this blog post.
And, yeah, it's a great analysis of, I think, 895 ish accidents... Instant records over a forty five year span, I think, from, like, 1980 to to 2025 from the hot air balloon database. That'd be a cool Tidy Tuesday dataset. Maybe we should should bump that over to those folks if they haven't seen it yet. John, if you're listening, just saying. Yeah. This might be a fun one for your team to look at. It's good to see that, event counts are declining,
you know, which is is the direction that you wanna see things go. That's true. And there's also a component to the analysis that takes a look at, you know, revenue from sightseeing and and commercial operations and how that has changed. It looks like it's only about up maybe 8% or something like that in terms of makes up 8% of the actual accident events that took place. And for the smaller balloons and a lot more for the larger balloons. So I really appreciate the data analysis that Stephen put together here.
You can go down the full rabbit hole of this analysis by taking a look at the post in our weekly, which gives you the high level sort of summary of what was created. And you can hyperlink to sort of the actual D3 data analysis itself, which is fantastic and contains a bunch of references that were used to develop it at the bottom of that blog post. And if you're really eager see how it was done, and look at the secret sauce, you can dive all the way into the GitHub repository as well. Yes. And then one thing, as I was looking at the actual, post itself,
it's important that whenever you have these visualizations present that you frame it in a way that is not promising something that's not there. So there is a conclusion here that this is looking at, in essence, patterns across these events that have been recorded over time. There isn't enough additional data that's being provided here in this data set to really answer that question of, in general, is one size of these balloons more safe than another?
Too often sometimes people in the data journalism world will sometimes reach their conclusions that maybe haven't been statistically assessed or the data just simply isn't equipped to do. So it's good to have that framing, but nonetheless, it was, interesting, an interesting exercise. And like I said, if you wanna go to town with replicating or even doing your own visualizations on this dataset, check out the GitHub repo of the blog post.
And rounding out our highlights today, this is certainly on the topic of visualization, but now really leveraging state of the art techniques that I think were a precursor to a lot of the AI models that we see now and doing it for a very worthwhile effort. And what I'm talking about here is the idea of trying to detect certain visual features in cellular imaging to help maybe with future diagnoses or future experiments
to help treat some complicated diseases. And so this post is actually part of a series of posts authored by Mikcay? Maj? Oh, boy. I don't know if I got that right at all. He is a senior data scientist based in Poland, and he is the author of a couple important utilities that are helping in this effort. In particular, this post is centered around a package that he's created called r platypus
along with a Python engine called py platypus. So what in the heck is this about? So these packages were originally built in 02/2020, which in essence is encompassing deep learning modeling on medical imaging. And at the time he was standardized on the reticulate kind of suite and also some established, you know, methods,
but he did a complete rewrite in recent years to streamline R, the Python side of it and to now standardize on PyChorch for the Python engine, but with the R wrapper more, uniformly able to be concise and let Python handle the actual imaging side of it. So this post is looking at how you can apply these new versions of packages
to actually train on a set of images and how you can assess how well it's performing to detect certain features. And this is based on data that was in a data science bowl back in 2018 for broad bio image benchmarked collection set of images with basically images of cells, and the job was to see if these models could pinpoint where the nuclei, the center of these cells, actually reside.
So this blog post is actually a tour of how you can not just use these packages to kind of run them in a one off fashion, but to actually train the models based on a collection of these images and how to assess those outputs. And one way to set all this up is you could call this through the R functions and the associated parameters, but you can also specify a YAML file that breaks down the different settings for you, such as the data, where they're located,
and maybe some other, you know, unique attributes such as color mappings, and then the models themselves that you want to utilize, such as the U Net model, which is a core of this, package's features, some of the parameters associated with that. So then you can use this as the input to your R functions in the R Platypus package to actually carry out the analysis. And one major motivation from his side on how he did this is that you can detect for any errors
in this part of the processing right away before you actually waste the CPU cycles or your GPU cycles on actually carrying out the models. If you have one specification wrong, it's going to kind of lint this YAML file to make sure that you've got you've got everything correct. So you import that in with the platypus spec function. You'll get a nice tidy kind of representation of what those settings are, and it's got the checks built in, and it will error if you have anything misspecified,
which you might do if you run this yourself and forget a key setting. So once you have that in place, you can then query your specification for what models you've specified that are available for you, such as this U Net, type of representation, where there's a nice visual on the blog post that shows how you go from the first side of it for decoding and then encoding,
and where the connections are in between when you go from the raw image to the decoded image. I I definitely cannot speak with any, expertise on these concepts. I'm more of a consumer of these visualization algorithms, but he's got some nice references in the post if you wanna learn more about it. And then once you actually do the training where you run, you know, the platypus fit function on your specs that you that you define,
and you can then see which of these architectures of these U models perform best. And he's got a nice table to show number of parameters that are going into the models and a mean of a measure called DICE, which I admit I do not know what that really means, but I'm guessing either lower better, I believe, or so. But then you can also assess what are the underlying metrics around this, such as the losses you might see, additional metrics, and you can tease that out,
with some... The functions like available losses and available metrics. So with that, you also got some nice visuals of what the decoded images look like from start to finish and where it might pinpoint certain features of the cells that might end up being the nuclei, and also how it goes about taking a big image and splitting it up into quadrants that might make it easier to determine the right, cellular features.
So there is, again, nice visuals that show this in action where you might tile up the big image instead of just shrinking it down to a different resolution and the different trade offs and how you split those those sets and what you get out of that of that split. So there is a lot to digest here. This is, again, part of a long running series that that has been offered by Michai here. You're invited to check out the beginnings of the post or the series where it talks about the motivation for the writing of R Platypus and the Python engine
and looking at the the first run of the package on these. And this post is more about how you can actually do the training and more customization of applying these models. Fascinating stuff here. And again, I cannot speak to any expertise and prior art of using this, but certainly if I was in this field, I would definitely take a close look at r platypus and see if it can meet my needs with novel, image segmentation and finding where these, hidden features just might be.
I've got two little cleanup items for us, Eric. Thank you. I've done a decent amount of research. I think his name is pronounced Mihau Mai, which Thank you, sir. Would have never, would have never guessed myself, and we'll take we'll take plenty of criticism, feedback. You know where to find us. We'll tell you at the end of this podcast if that is incorrect. Also, dice coefficient, kinda like an f one score, I guess, for, measuring how much sort of two sets overlap,
commonly used in neural networks, mostly used for image segmentation. Higher is better. Higher is better. Okay. Thank you, No problem. But yes, like yourself, Eric, I actually, I probably even have less exposure to this stuff than you have. Not do a lot of neural network data science work. Do not do a whole lot with image processing, unfortunately. It seems like it would be super fun. I wish I had more exposure to it, but I don't do a lot of it. Probably my expertise
ended in grad school when we got to do a little bit of, I think, neural network or machine learning on the MNIST dataset, which I believe is like handwritten numbers zero nine. That's one of the famous ones. Yep. That's one of the classics. Did it in R. Shout out my grad school professor whose name I cannot remember, but he he set up that project for us in R, and that was part of one of the things that really got me hooked in R because he did There you go. Teaching it. Nice. Shout out in this as well.
But, for the folks that are in this are in this space, no pun intended, I think, you know, these sort of four new architectures, UNET, UNET plus plus, ResUNET, and LinkNet, may be super helpful, it seems like. And also, one of the big takeaways is maybe a takeaway that extends beyond just this particular domain and a little more broadly to machine learning and data science. But it seems like rather than endlessly tweaking neural network architectures,
you might get better returns from your modeling by focusing on data set quality, your loss functions, and in this case, the resolution of the images themselves. So better data produces better models as opposed to nitpicking the hyperparameters that you're using in your model to squeak out that extra little 0.00001% of accuracy. But I assume that it depends on sort of the domain that you're working in and what you're trying to accomplish.
But this is, I think, some really cool tooling. It's nice to see that this tooling extends sort of in a polyglot way across both R and Python. That is awesome. Hard to maintain. So kudos to Mihael for doing that, and definitely very exciting for the folks in this space. Yeah, I'm sure I would have a lot of bioinformatics colleagues back in my early part of my day job where I was doing a lot of biomarker analysis, but they were handling all the discovery
kind of image, know, on the analysis side of it. Was just more consuming their results. But yeah, it's great to see this tooling available, like I said, for ER users. Again, one interface to interface with all this. He has mentioned in that first post it's a lot more efficient than what it was before, thanks to some advancements in Reticulate as well as in the PyCharge, ecosystem. So, yeah, certainly excited to see where others can can take these efforts and, yeah, great, great looking blog posts and lots of great visuals to reinforce the, key concepts.
And that is just a sampling of the key concepts that we had here in these highlights, but as usual, it never stops at the highlights. There is a lot more to sink your visualization chops into or your data science chops into when you look at the rest of the issue. Lots of interesting uses of R in the real world. We don't have time to get into all of them today, but I do see one that I do want to read about later called The Cowbell King. If that's what I think about for Cowbell, I definitely want to read that and,
shout out to SNL for that skit that will always be timeless. Good times, good times. Yes, anyway, yeah, lots of other great, features here, great blog posts, new packages on the horizon that have just been released and much more. And yes, some artistry that's always part of an hour weekly issue by Danielle Navarro. Yeah, great to have her continuing, contributions there. With that said, yeah, it's been, as Mike said, you can definitely get a hold of us when we get things a bit on the wrong side of things, which is mostly from me and my pronunciation skills or lack thereof. How can you shout to me and maybe my mic by proxy?
You have a few ways. You can get to the contact page and the episode show notes. You can send a message right there. Don't worry. I... I'm I'm a big boy. I can handle it. Also, I love hearing from all of you on the social media out there. But more importantly, before you get in touch with us, help the project itself. We love to get those new, features, those blog posts, those packages, to be available to have the rest of the world to see. So we are just a poll request away.
I kid you not, when I get some downtime, I'm gonna make that easier, but for now you just go to rwku.org. That's where you find this issue and all the past issues. Hit that little octocad in the upper right corner, and you'll be taken to the poll request template. Easy peasy right there, but I will make it even easier in the future. And, with that, you can also get in touch with us personally on our social media accounts. I am on Blue Sky, where I am at R Podcast at bsky.social.
I am on Mastodon at R Podcast at podcastindex.social. I'm on LinkedIn. Search your name, and you'll find me there. And lately, as, I alluded to in the last episode, I'm doing a bit of golfing on the virtual side, and you'll see me on there, as well if you wanna hit the links with me and super video golf hashtag just saying. Mike, where can the listeners find you? Is that better than golden tea? I dare say yes, and I got a few people that would agree with me. That's awesome. I'll have to check that out. Yes. You can find me on blue sky at mike dash thomas dot b s k y dot social or on LinkedIn if you search catch brook analytics, k e t c h b r o o k, you can see what I'm up to. Very good. I mean, we do have it on our bucket list next time we're together. If we can ever get around the golf together, we definitely wanna do that, but, well, one way or another. Absolutely.
And then you'll destroy me on the real thing, but maybe I would destroy you on the virtual one. I don't know. We'll definitely have to do both. Even even p... Easy peasy there. Yep. Alright. Well, anyway, we're gonna close-up shop here. Thank you so much for joining us for episode 249 of our weekly highlights. And, programming note, it is, like I said, Thanksgiving holiday here in The US. We likely will be off next week, if we are, we'll let you know, and we'll be back the week after, but in any event thank you for joining us and we'll see you back next time.
The flow of both data and analytical jobs just got smoother with mizu, opening the door for multiple agent harnesses in Positron, and an optimal statistical model tailored to complex experimental designs with a friendly...
What happens when that online data set isn't so easy to download anymore? We learn of two packages to ease the pain of obtaining these files and then some. Plus a visit to the visualization corner with a handy way to...
The celebration of rOpenSci's 15-year anniversary continues with the community sharing their perspectives, and a fun Shiny app that could be quite useful during celebrations on a weekend or the holidays. If you ever...
We learn about the variety of ways you can contribute back to the core of R, a roundup of the excellent choices available for package and environment reproducibility, and an amazing collection of Shiny applications and...
A roundtrip between formatted tables and spreadsheets is now very much possible, how {shinyreact} represents a new path for user interface development in Shiny, and a candid take on ownership of code and the products we...