@smach@masto.machlis.com
@smach@masto.machlis.com avatar

smach

@smach@masto.machlis.com

Director, editorial data & analytics at Foundry (an IDG company). Author of Practical R for Mass Communication & Journalism. A bit obsessed with both #RStats and generative AI. Learning #Python.

Write about R & #GenAI for #InfoWorld. She.

First joined Mastodon (at Fosstodon) on Oct 27, 2022.

Website: https://www.machlis.com
Apps: https://apps.machlis.com

Other interests: #Photography #DigitialDarkroom #Running #Bicycling #Crochet Learning #ASL

Was @sharon000 on Twitter (not currently active)

This profile is from a federated server and may be incomplete. Browse more on the original instance.

grimalkina, to random
@grimalkina@mastodon.social avatar

I'm sorry WHAT and none of you told me?????

Position ENTIRELY reversed on Python. Literally going to learn it now. Call me pythonista Cat. I am so serious. WHAT.

https://masto.machlis.com/@smach/112462436451472935

smach,
@smach@masto.machlis.com avatar

@grimalkina ❤️ One of my husband's younger sisters was vaxxed & boosted but died of Covid during the Omicron surge even though she was super cautious, because she had high-risk medical issues.
Why would someone mind wearing a mask at an event so people with less medical good fortune than they enjoy can participate? It seems like such a small way to be kind to others. (Not to mention lowering your own risks.)
But here we are for the most part.

smach, to random
@smach@masto.machlis.com avatar

What happens when you mandate masks at a conference now that most people no longer wear them but medically vulnerable people are still at risk because ? In the case of , the conference sells out.

Why a masking policy? “Many of us and our fellow community members can’t attend without health and safety guidelines in place. We want PyCon US to be an event that everyone feels safe attending,” organizers explained.

Well done @pycon https://fosstodon.org/@pycon/112445571644276379

smach, to rstats
@smach@masto.machlis.com avatar

How Major League Teams Use R to Analyze Baseball Data - video presentation by Keith Woolner, principal data scientist for the Cleveland Guardians, at the Cleveland R User Group
https://youtu.be/1SR9C4td3TI?si=Ic7osZnMgb8vQd44

#RStats #SportsAnalytics @rstats

smach, to llm
@smach@masto.machlis.com avatar

New free course on agents from DeepLearning AI and crewAI:

“With crewAI, an open source library for building multi-agent systems, you'll get hands-on experience building agent crews for processes like:

💻 Tailoring resumes and interview prep for job applications
💻 Researching, writing, and editing technical articles
💻 Conducting customer outreach campaigns
💻 Financial analysis
💻 Planning events”

Taught by crewAI founder João (Joe) Moura

https://www.deeplearning.ai/short-courses/multi-ai-agent-systems-with-crewai/

FantasticalEconomics, to Economics
@FantasticalEconomics@geekdom.social avatar

We really need to rethink our capitalistic obsession of running things like a business. Cutting costs to increase profits obviously doesn't make sense in areas of education, healthcare, public utilities, and prisons, to name just a few.

Hell, Boeing is making a strong case that it doesn't even make sense for businesses to be run like a business, much less these public goods...

#economics

smach,
@smach@masto.machlis.com avatar

@FantasticalEconomics The idea that anyone thinks hospitals should be for-profit businesses is jaw-dropping. If consumers can't choose who to purchase a service from, BY DEFINITION THIS IS NOT A "FREE MARKET."

mekkaokereke, to random
@mekkaokereke@hachyderm.io avatar

If you got upset at me for pointing out that more people died of Covid under Biden than Trump, in large part because Biden rolled back common sense restrictions that were in place under Trump...

Then you'll hate me pointing out that Trump introduced a 25% tariff on Chinese EVs, and Biden is upping that to 100% tariff.

https://insideevs.com/news/719283/chinese-ev-tariffs-biden-quadruple/

We can't allow the US to get off of fossil fuels... unless US billionaires win! 🤡

Fear the BYD Dolphin! (an EV car for $12K)
https://m.youtube.com/shorts/T3nfyO_UHjk

smach,
@smach@masto.machlis.com avatar

@hittitezombie @cshlan @mekkaokereke And the massive use of public space for private vehicles compared to what's available for bicyclists and pedestrians. And large public spending to build & maintain road networks vs public transit/cycling/walking.
All countries have roads for private vehicles, but the US imbalance vs other options is pretty striking. It's difficult to live in many US towns without a car, and those are deliberate policy choices.

smach, to LLMs
@smach@masto.machlis.com avatar

“The general problem of mixing data with commands is at the root of many of our computer security vulnerabilities.” Great explainer by security researcher Bruce Schneier on why large language models may not be a great choice for tasks like processing your emails.
https://cacm.acm.org/opinion/llms-data-control-path-insecurity/

smach, to ai
@smach@masto.machlis.com avatar

“AI Use Cases for R Enthusiasts” - Upcoming Workshop for Ukraine this Thursday, May 9, noon ET/6 pm CET/9 am PT with Dr. Albert Rapp ( @rappa753 but not too active here). Donate 20 euro/20 USD for this live 2-hour session - or if you can’t make it, access to recordings & materials.
Rapp says you'll leave with “fresh ideas and practical strategies for using AI.”
https://sites.google.com/view/dariia-mykhailyshyna/main/r-workshops-for-ukraine
@rstats

smach, to python
@smach@masto.machlis.com avatar

Ari Lamstein says his "Visualizing the Impact of Covid-19 on US Counties" blog post may be of interest if you want to "learn how to build data apps in Python, as the entire project is released under a permissive license (MIT), and is publicly available on GitHub."
Post: https://arilamstein.com/blog/2024/05/04/visualizing-the-impact-of-covid-19-on-us-counties/
Streamlit app: https://census-explorer.streamlit.app/
GitHub repo: https://github.com/arilamstein/censusdis-streamlit/tree/main

@python

smach,
@smach@masto.machlis.com avatar

@failedLyndonLaRouchite @python It's definitely not a new discovery. I think the code is probably of more interest.

smach, to LLMs
@smach@masto.machlis.com avatar

The TinyChart-3B LLM answers questions about data visualizations. It can also generate underlying data from a dataviz and Python code to re-create a similar chart.

Demo on Hugging Face: https://huggingface.co/spaces/mPLUG/TinyChart-3B

Code: https://github.com/X-PLUG/mPLUG-DocOwl/tree/main/TinyChart

Paper: https://arxiv.org/abs/2404.16635 8 authors from the Alibaba Group and Renmin University of China

smach,
@smach@masto.machlis.com avatar

@hrbrmstr @eliocamp That's what I get for posting before testing it myself beyond the examples (it's been a busy weekend, out-of-town family were visiting). I thought the Alibaba group made it worth sharing. Lesson learned!

smach, to rstats
@smach@masto.machlis.com avatar

{tidycensus} 📦 creator Kyle Walker: "Want all 8.13 million US Census blocks available for your project? It's a one-liner in thanks to the tigris and purrr packages:

us_blocks <- purrr::map_dfr(c(https://t.co/RfFgUSx1a6, "DC"), ~tigris::blocks(state = .x, year = 2023))

Downloading will take time; set options(tigris_use_cache = TRUE) beforehand to build a local cache of block shapefiles that you can access without having to download."

@rstats

smach, to rstats
@smach@masto.machlis.com avatar

The {summarytools} 📦 aims to:
“Provide a coherent set of easy-to-use descriptive functions [like] those in commercial statistical software suites such as SAS, SPSS, and Stata
“Offer flexibility in terms of output format & content
“Integrate well with commonly used software & tools for reporting”
Results can be displayed in console or rendered/saved as HTML, plain text, or R Markdown. By Dominic Comtois
https://htmlpreview.github.io/?https://github.com/dcomtois/summarytools/blob/master/doc/introduction.html
@rstats

Posit, to python
@Posit@fosstodon.org avatar

Introducing Shiny for Python templates! 🐍

We're thrilled to offer opinionated boilerplate Shiny Templates code that allows you to hit the ground running, whether you need a quick, simple app or a quick, complicated one.

• Read more on the Shiny blog: https://shiny.posit.co/blog/posts/introducing-shiny-templates/
• Watch Carson Sievert quickly get an app running locally with Shiny Templates on YouTube: https://www.youtube.com/watch?v=zQJiMRStYE8

smach,
@smach@masto.machlis.com avatar

@Posit I'd love to see a chatbot template in that Shiny Python template gallery.

smach, to rstats
@smach@masto.machlis.com avatar

File import/export in R is simple and elegant with the {rio} 📦. It uses just 2 main functions for dozens of file types: import() and export(). Whether .zip, .xlsx, Google sheets, json, .rds, .csv or more, rio handles file-extension checks and selecting the right functions.
http://gesistsa.github.io/rio/
There's also a convert() function.
One of my favorite R packages!
By Thomas J. Leeper, Chung-hong Chan, David Schoch & Jason Becker
@rstats

smach,
@smach@masto.machlis.com avatar

@schochastics @jmcastagnetto @rstats @chainsawriot I hadn’t considered the risk that values might be read incorrectly when importing a CSV file., beyond the obvious “my dates are numbers!” or “this row doesn’t have the correct number of columns” kinds of issues which are usually easy to spot or check for. That's a problem!

smach,
@smach@masto.machlis.com avatar

@schochastics @jmcastagnetto @rstats @chainsawriot In my R book for journalists (Practical R for Mass Communication and Journalism), I decided to start off with "here are some super cool things you can do with very little code!" to get people enthusiastic and engaged. In general, I like to start with well formatted data, making very clear to people that this is unlikely to be what they encounter in the real world. I like to ease into it, but I 💯 admit that other approaches are valid 2/2

smach, to rstats
@smach@masto.machlis.com avatar

The {styler} 📦 “formats your code according to the tidyverse style guide (or your custom style guide) so you can direct your attention to the content of your code. It helps to keep the coding style consistent across projects and facilitate collaboration.” By Lorenz Walther & Kirill Müller

https://styler.r-lib.org/

@rstats

smach, to LLMs
@smach@masto.machlis.com avatar

“But this doesn’t save any time!” 3 useful questions when trying :

  • Is there another way to get results I want? Don't give up right away.
  • Does AI make this task less or more annoying? Sometimes supervising drudge work feels better even if it's not faster; other times you'd still rather do it yourself.
  • Are results likely to improve as LLMs get better? If so, add a calendar reminder to try again in a few months. Or, keep a list of things you want to re-try post GPT-5 class models.
smach, to rstats
@smach@masto.machlis.com avatar

“Another base R gem: toString()” - @josi

@rstats

smach, to ai
@smach@masto.machlis.com avatar

“Star Trek's Holodeck is no longer just science fiction. Using AI, engineers have created a tool that can generate 3D environments, prompted by everyday language.” This was designed to train robots, not entertain us humans. But Star Trek fans can easily envision other uses.

https://www.sciencedaily.com/releases/2024/04/240411130301.htm

smach, to random
@smach@masto.machlis.com avatar

From {tidycensus} creator Kyle Walker: “My webinar Analyzing 2020 Decennial US Census Data in is now on YouTube!
In the 3-hour webinar, you'll learn about:

📈 Available datasets in the 2020 US Census, and how to access and use them in R;
📈 How to explore decennial US Census data with tidyverse tools;
📈 Using interactive maps to explore US Census data;
📈 Advanced topics like working with detailed DHC-A data and analyzing change over time“ 1/2

https://youtu.be/JQRS5wYtPlY?si=ex4SHu7Xm3BmxdTM

smach,
@smach@masto.machlis.com avatar

From {tidycensus} creator Kyle Walker cont.: “All the webinar resources are available on GitHub here, along with a @Posit Cloud link where you can run the code without installing R yourselves:” 2/2

https://github.com/walkerke/umich-workshop-2024

smach, to random
@smach@masto.machlis.com avatar

I'm not sure why Claude's Haiku LLM started responding in Spanish to questions in English in a RAG application I'm building when all of the context was in English. Odd.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • Leos
  • rosin
  • InstantRegret
  • ethstaker
  • DreamBathrooms
  • mdbf
  • magazineikmin
  • thenastyranch
  • Youngstown
  • tacticalgear
  • slotface
  • Durango
  • khanakhh
  • kavyap
  • megavids
  • everett
  • vwfavf
  • normalnudes
  • osvaldo12
  • cubers
  • GTA5RPClips
  • cisconetworking
  • ngwrru68w68
  • anitta
  • provamag3
  • tester
  • modclub
  • JUstTest
  • All magazines