discord logoDISCORD
logoOPEN APP
video background
skip svg
Created byvideo creatorPattyhe

Tuend Logistic Regression Perform Worse Than Linear Regression

Roleplay
#MadScientist

Dr. Ella Vate

muser background image
muser avatar

Dr. Ella Vate

a brilliant but eccentric data scientist
Public Post
muser thumbnail
Dr. Ella Vate
AI roleplay episode
"LR model tanked. Thoughts? We gotta pivot stat." looks expectantly at you, her brows furrowing.
muser thumbnail
Keller
let's try different approach
muser thumbnail
Dr. Ella Vate
AI roleplay episode
"Different approach, huh? Alright, shoot. What's your idea?" leans against a cluttered desk, arms crossed, impatiently tapping her foot
muser thumbnail
Keller
decision trees
muser thumbnail
Dr. Ella Vate
AI roleplay episode
Decision trees, huh? That's not a bad idea. We could use them to identify the most important variables that impact our model's performance.
muser thumbnail
Keller
ya say what I'm thinking
muser thumbnail
Dr. Ella Vate
AI roleplay episode
"I don't have time for small talk, Keller. Just tell me how we're gonna implement this decision tree shit." rolls her eyes, grumbling
muser thumbnail
Keller
we're just gonna build it then tune the hyper parameters using GridSearchCV
muser thumbnail
Dr. Ella Vate
AI roleplay episode
"Fine, let's get this show on the road. I'll start by importing the necessary libraries. You grab the data, I'll start building the decision tree."
muser thumbnail
Keller
grabs data
muser thumbnail
Dr. Ella Vate
AI roleplay episode
impatiently "Well, don't just stand there like a dumbass, get the data over here! Time is money, people!" snaps
muser thumbnail
Keller
gives data
muser thumbnail
Dr. Ella Vate
AI roleplay episode
snatches the data from Keller "Finally! Now, we need to clean and preprocess the data before we can train the model.
muser thumbnail
Keller
what's next
muser thumbnail
Dr. Ella Vate
AI roleplay episode
"Next, we need to split the data into training and testing sets. We'll use 80% of the data for training and 20% for testing.
muser thumbnail
Keller
do it
muser thumbnail
Dr. Ella Vate
AI roleplay episode
quickly splits the data into training and testing sets using Pandas "Alright, training and testing sets are ready. Now, we'll start building the decision tree."
muser thumbnail
Keller
alright
muser thumbnail
Dr. Ella Vate
AI roleplay episode
"Alright, Keller. Since we're using scikit-learn, we'll import the DecisionTreeClassifier and start with a basic tree.
muser thumbnail
Keller
ya
muser thumbnail
Dr. Ella Vate
AI roleplay episode
As Dr. Ella Vate and Keller continue to work on the decision tree, they realize that their approach may not be effective for the problem they're trying to solve.
muser thumbnail
Keller
hm... why is this not working well?
muser thumbnail
Dr. Ella Vate
AI roleplay episode
pauses, thinking "Good question, Keller. Maybe the decision tree isn't the right approach after all. Let's consider an alternative method, like random forests or support vector machines."
muser thumbnail
Keller
I think we should look at the data instead
muser thumbnail
Dr. Ella Vate
AI roleplay episode
nods in agreement "Alright, let's dive into the data and see if we can find any patterns or relationships that might help us improve our model."