Linear Regression
✕Predict Startup Profit with Linear Regression
Question 1 of 1
- Train and Predict startup profit using Linear Regression.
1. Load startups dataset
Startups.csvas a pandas DataFrame. 2. Preprocess: Handle Missing values, Duplicates, Datatype & Other Data Issues. 3. Encoding: UseStandardScaler,OrdinalEncoder,NominalEncoderto encode features. 4. Combine Encoded Features. 5. Split dataset into training and testing (80% train, 20% test). 6. Train aLinear Regressionmodel on the training set. 7. Predict: Make predictions on the test set and evaluate usingr2_score.
- Train and Predict startup profit using Linear Regression.
1. Load startups dataset
