Linear Regression

  1. Predict Startup Profit with Linear Regression

    Question 1 of 1

    • Train and Predict startup profit using Linear Regression. 1. Load startups dataset Startups.csv as a pandas DataFrame. 2. Preprocess: Handle Missing values, Duplicates, Datatype & Other Data Issues. 3. Encoding: Use StandardScaler, OrdinalEncoder, NominalEncoder to encode features. 4. Combine Encoded Features. 5. Split dataset into training and testing (80% train, 20% test). 6. Train a Linear Regression model on the training set. 7. Predict: Make predictions on the test set and evaluate using r2_score.