Back to Home
Logistic Regression Pro
Advanced binary classification with comprehensive features
Model Hyperparameters
Add Data Point
Data Points (5)
| # | X | Y | Class | Actions |
|---|---|---|---|---|
| 1 | 1.0000 | 0 | Negative | |
| 2 | 2.0000 | 0 | Negative | |
| 3 | 3.0000 | 1 | Positive | |
| 4 | 4.0000 | 1 | Positive | |
| 5 | 5.0000 | 1 | Positive |
Model Results
Model Equation
P(y=1|x) = σ(2.2205x + -5.2553)
Weight (w)
2.2205
Bias (b)
-5.2553
Accuracy
100.00%
Precision
100.00%
Recall
100.00%
F1 Score
100.00%
Make Prediction
Batch Predictions
Step-by-Step Solution
1
Step 1: Given data points: , , , ,
2
Step 2: Initialize parameters:
3
Step 3: Set hyperparameters:
4
Step 4: The sigmoid function is defined as:
5
Step 5: For each iteration, calculate the prediction:
6
Step 6: Calculate gradients:
7
Step 7: Update parameters using gradient descent:
8
Step 8: After 1000 iterations, the final parameters are:
9
Step 9: The logistic regression model is:
10
Step 10: Model Performance Metrics:
- Accuracy =
- Precision =
- Recall =
- F1 Score =
Related Topics & Algorithms
Explore these related algorithms and concepts to deepen your understanding and discover complementary techniques.
Regression
Linear Regression
Predict continuous values using linear relationships
Deep Learning
Neural Networks
Multi-layer perceptrons for complex classification tasks
Classification
Support Vector Machines
Powerful classifier using hyperplanes and kernel tricks
Classification
Naive Bayes
Probabilistic classifier based on Bayes theorem
Optimization
Gradient Descent
Optimization method for training logistic regression models
Model Evaluation
Cross Validation
Evaluate classification performance with proper validation